MCPcopy Create free account
hub / github.com/aosabook/500lines / isObject

Function isObject

spreadsheet/code/lib/angular.js:535–538  ·  view source on GitHub ↗

* @ngdoc function * @name angular.isObject * @module ng * @kind function * * @description * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not * considered to be objects. Note that JavaScript arrays are objects. * * @param {*} value Reference to check.

(value)

Source from the content-addressed store, hash-verified

533 * @returns {boolean} True if `value` is an `Object` but not `null`.
534 */
535function isObject(value){
536 // http://jsperf.com/isobject4
537 return value !== null && typeof value === 'object';
538}
539
540
541/**

Callers 15

sizeFunction · 0.85
copyFunction · 0.85
shallowCopyFunction · 0.85
bootstrapFunction · 0.85
jqLiteDataFunction · 0.85
angular.jsFile · 0.85
supportObjectFunction · 0.85
instantiateFunction · 0.85
$CompileProviderFunction · 0.85
applyDirectivesToNodeFunction · 0.85
compileTemplateUrlFunction · 0.85
$ControllerProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected