Ember.isNone()

isNone (obj) Booleanpublic

Defined in packages/ember-metal/lib/is_none.js:1

Returns true if the passed value is null or undefined. This avoids errors from JSLint complaining about use of ==, which can be technically confusing.

Ember.isNone();              // true
Ember.isNone(null);          // true
Ember.isNone(undefined);     // true
Ember.isNone('');            // false
Ember.isNone([]);            // false
Ember.isNone(function() {}); // false

Parameters:

obj Object
Value to test

Returns:

Boolean
doc_EmberJs
2016-11-30 16:51:32
Comments
Leave a Comment

Please login to continue.