Function
isNone (obj) Boolean public
Module: | @ember/utils |
---|
Defined in packages/ember-metal/lib/is_none.js:4
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/2.18/functions/@ember%2Futils/isNone