@nuskin/ns-dumb-lib-c

An awesome little function that tests for a null value.

Usage no npm install needed!

<script type="module">
  import nuskinNsDumbLibC from 'https://cdn.skypack.dev/@nuskin/ns-dumb-lib-c';
</script>

README

@nuskin/ns-dumb-lib-c

An awesome little function that tests for a null value.

Installing

Usng npm:

npm add @nuskin/ns-dumb-lib-c

Usng yarn:

yarn add @nuskin/ns-dumb-lib-c

Example usage

const { isNull } =  require('@nuskin/ns-dumb-lib-c')

let notDefined
if(isNull(notDefined)){
    console.log("This is null")
}

if(isNull(null)){
    console.log("This is null")
}

if(!isNull({})){
    console.log("This is not null")
}

Resources

  • Changelog could go here

License

MIT