Detalhes do pacote

is-null-like

royriojas505MIT1.0.3

A simple javascript function that will return true if the value is null like (aka undefined or null)

is null, is undefined, utility, is null or undefined

readme (leia-me)

NPM Version Build Status

is-null-like

A simple javascript function that will return true if the value is null like (aka undefined or null)

Installation

npm i --save is-null-like

Overview

describe( 'is-null-like', function () {
  it( 'should return true in case of null', function () {
    var isNullLike = require( '../' );

    expect( isNullLike( null ) ).to.be.true;
  } );
  it( 'should return true in case of undefined', function () {
    var isNullLike = require( '../' );
    var nodef;

    expect( isNullLike( nodef ) ).to.be.true;
  } );

  it( 'should return false if the value passed is an object or primitive', function () {
    var isNullLike = require( '../' );

    expect( isNullLike( 3 ) ).to.be.false;
    expect( isNullLike( {} ) ).to.be.false;
  } );
} );

License

MIT

Changelog

changelog

changelog (log de mudanças)

is-null-like - Changelog

v1.0.3

v1.0.2

  • Build Scripts Changes
    • Update deps to get latest version of beautifier tool - 8e62d0d, royriojas, 07/07/2015 01:14:57

v1.0.1

  • Bug Fixes
    • issue preventing installing this module - e51f90e, royriojas, 07/07/2015 01:05:44
  • Build Scripts Changes
    • Add command to generate and commit the changelog - f8ad882, royriojas, 12/06/2015 00:38:15

v1.0.0