8076e2c51be021faa1cbc12abb9844f4531ef747
[platform/framework/web/crosswalk-tizen.git] /
1 var some = require('./some');
2
3     /**
4      * Check if object contains value
5      */
6     function contains(obj, needle) {
7         return some(obj, function(val) {
8             return (val === needle);
9         });
10     }
11     module.exports = contains;
12
13