1 | /*
|
2 | object:some
|
3 | */"use strict"
|
4 |
|
5 | var forIn = require("./forIn")
|
6 |
|
7 | var 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 |
|
15 | module.exports = some
|