Lines Matching refs:obj
15 function hasOwnProp(obj, k) { argument
16 return ObjProto.hasOwnProperty.call(obj, k);
126 function isFunction(obj) { argument
127 return ObjProto.toString.call(obj) === '[object Function]';
130 function isArray(obj) { argument
131 return ObjProto.toString.call(obj) === '[object Array]';
134 function isString(obj) { argument
135 return ObjProto.toString.call(obj) === '[object String]';
138 function isObject(obj) { argument
139 return ObjProto.toString.call(obj) === '[object Object]';
181 function groupBy(obj, val, throwOnUndefined) { argument
184 for (var i = 0; i < obj.length; i++) {
185 var value = obj[i];
195 function toArray(obj) { argument
196 return Array.prototype.slice.call(obj); argument
223 function each(obj, func, context) { argument
224 if (obj == null) {
227 if (ArrayProto.forEach && obj.forEach === ArrayProto.forEach) {
228 obj.forEach(func, context);
229 } else if (obj.length === +obj.length) {
230 for (var i = 0, l = obj.length; i < l; i++) {
231 func.call(context, obj[i], i, obj);
236 function map(obj, func) { argument
238 if (obj == null) {
241 if (ArrayProto.map && obj.map === ArrayProto.map) {
242 return obj.map(func);
244 for (var i = 0; i < obj.length; i++) {
245 results[results.length] = func(obj[i], i);
247 if (obj.length === +obj.length) {
248 results.length = obj.length;
266 function asyncFor(obj, iter, cb) { argument
267 var keys = keys_(obj || {});
274 iter(k, obj[k], i, len, next);
286 function keys_(obj) { argument
289 for (var k in obj) {
290 if (hasOwnProp(obj, k)) {
297 function _entries(obj) { argument
298 return keys_(obj).map(function (k) {
299 return [k, obj[k]];
303 function _values(obj) { argument
304 return keys_(obj).map(function (k) {
305 return obj[k];