UNPKG

297 BJavaScriptView Raw
1/*
2object:some
3*/"use strict"
4
5var forIn = require("./forIn")
6
7var some = function(self, method, context){
8 var some = false
9 forIn(self, function(value, key){
10 if (!some && method.call(context, value, key, self)) return !(some = true)
11 })
12 return some
13}
14
15module.exports = some