jsmicro
v1.0.2
Published
Check does the given Javascript Object is a function.
Downloads
2
Readme
JSMicro
A wrapper of all JSMicro Modules.
Modules:
- jsmicro-foreach
- jsmicro-is-arguments
- jsmicro-is-array
- jsmicro-is-boolean
- jsmicro-is-date
- jsmicro-is-defined
- jsmicro-is-empty
- jsmicro-is-error
- jsmicro-is-function
- jsmicro-is-null
- jsmicro-is-number
- jsmicro-is-object
- jsmicro-is-regexp
- jsmicro-is-string
- jsmicro-typeof
Browser Usage
bower install --save jsmicro
<script type="text/javascript" src="bower_components/jsmicro-is-string/index.js">
<script type="text/javascript" src="bower_components/jsmicro-is-function/index.js">
<script type="text/javascript">
var obj = function() {};
var str = '200';
// Available in the window object.
isFunction(obj); // true
isFunction(str); // false
isString(str); // true
</script>
NodeJS Usage
npm install --save jsmicro
const $ = require('jsmicro');
// Available in the global object.
isFunction(function() {}); // true
isString('23322333'); // true
isNumber(23234); // true
// Also available in the export object.
$.isFunction(function() {}); // true
$.isString('23322333'); // true
$.isNumber(23333); // true
Changelogs
v1.0.1 - May 21, 2016
- Added .npmignore
v1.0.0 - May 21, 2016
- Initial release.