Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js array none

const array = [1, 2, 3, 4]
const none = !array.some(value => value === 5) 
// none === true when none of the elements matches the condition
 
PREVIOUS NEXT
Tagged: #js #array
ADD COMMENT
Topic
Name
5+1 =