some-sync

[].some but awesome!

some-sync

[].some but awesome!

var some = require("some-sync")
 
var value = [1,2,3,4,5].some(function (item) {
    return item === 3 && item
})
console.log("result", value)
//* 3

npm install some-sync

  • Raynos