Function

Module: @ember/utils

Available since v3.1.3

obj
Object
Value to test
returns
Boolean

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

1
2
3
4
5
6
isNone();              // true
isNone(null);          // true
isNone(undefined);     // true
isNone('');            // false
isNone([]);            // false
isNone(function() {}); // false