Ответ:
const nums = [3564, 3982, 2224, 8576, 8877, 3964, 3035];
const result = arr => arr.filter(n => ('' + n).length === [...new Set( [...('' + n)] )].length);
console.log( result(nums) ); // [3564, 3982, 8576, 3964]
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
const nums = [3564, 3982, 2224, 8576, 8877, 3964, 3035];
const result = arr => arr.filter(n => ('' + n).length === [...new Set( [...('' + n)] )].length);
console.log( result(nums) ); // [3564, 3982, 8576, 3964]
Объяснение: