Function

isNone (obj) Boolean public

Module: @ember/utils
import { isNone } from '@ember/utils';
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.

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

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/functions/@ember%2Futils/isNone