DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
array.prototype.some( )
function checkPositive(arr) { return arr.some(elem => elem > 0); } checkPositive([1, 2, 3, -4, 5]);
Source by forum.freecodecamp.org #
PREVIOUS
NEXT
Tagged:
ADD COMMENT
Topic
COMMENT
Name
7+5 =
Submit