0.0.1 • Published 8 years ago

@nathanfaucett/is_null_or_undefined v0.0.1

Weekly downloads
11
License
MIT
Repository
github
Last release
8 years ago

Build Status

isNullOrUndefined

isNullOrUndefined accepts any value and returns true if the value is null or undefined.

For all other values false is returned.

param {Any} any value to test

returns {Boolean} the boolean result of testing value

  isNullOrUndefined(null);   // returns true

  isNullOrUndefined(undefined);   // returns true

  isNullOrUndefined("string");    // returns false

``