JAVASCRIPT
some () 예문
Made Project
2020. 6. 24. 14:23
const words = ['unique', 'uncanny', 'pique', 'oxymoron', 'guise'];
// Something is missing in the method call below
console.log(words.some(word => {
return word.length < 6;
}));
som () 메서드 함수는 배열안에 주어진 판별함수를 통과하는지 테스트할수있는 메서드 함수입니다.