@jsmicro/is-string

1.0.2 • Public • Published

JSMicro - Is String

isString(object)

Check does the given Javascript Object (array, object, string, etc) is a string.

isNotString(object)

Check does the given Javascript Object (array, object, string, etc) is not a string.

Browser Usage

bower install --save jsmicro-is-string
<script type="text/javascript" src="bower_components/jsmicro-is-string/index.js">
<script type="text/javascript">
    var str = 'String';
    var nbr = 200;

    // Available in the window object.
    isString(str);      // true
    isString(nbr);      // false
    isNotString(nbr);   // true
</script>

NodeJS Usage

npm install --save @jsmicro/is-string
const str = require('@jsmicro/is-string');

// Available in the global object.
isString('String'); // true
isString(23322333); // false
isNotString(23234); // true

// Also available in the export object.
str.isString('String'); // true
str.isString(23322333); // false
str.isNotString(23333); // true

Changelogs

v1.0.1 - May 21, 2016

  • Added .npmignore

v1.0.0 - May 19, 2016

  • Initial release.

The MIT License (MIT)

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @jsmicro/is-string

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • mahdaen