1.0.2 • Published 10 years ago

validate.io-function v1.0.2

Weekly downloads
78,594
License
-
Repository
github
Last release
10 years ago

Function

NPM version Build Status Coverage Status Dependencies

Validates if a value is a function.

Installation

$ npm install validate.io-function

For use in the browser, use browserify.

Usage

var isFunction = require( 'validate.io-function' );

isFunction( value )

Validates if a value is a function.

var value = function beep(){};

var bool = isFunction( value );
// returns true

Examples

console.log( isFunction( function foo(){} ) );
// returns true

console.log( isFunction( {} ) );
// returns false

To run the example code from the top-level application directory,

$ node ./examples/index.js

Tests

Unit

Unit tests use the Mocha test framework with Chai assertions. To run the tests, execute the following command in the top-level application directory:

$ make test

All new feature development should have corresponding unit tests to validate correct functionality.

Test Coverage

This repository uses Istanbul as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:

$ make test-cov

Istanbul creates a ./reports/coverage directory. To access an HTML version of the report,

$ make view-cov

License

MIT license.

Copyright

Copyright © 2014. Athan Reines.

@everything-registry/sub-chunk-3040wikipedia-anagramswandbox-apiwandbox-api-updatedtex-equation-to-svgjestanissuekernel-smoothutils-upsearchtravis-ci-access-tokentravis-ci-gettravis-ci-posttravis-ci-puttravis-ci-repo-infotravis-ci-syncutils-homedirutils-function-nameutils-merge2utils-try-functionutils-series-waterfallvalidate.io-function-arrayvalidate.io-array-functionvalidate.io-native-functionvalidate.iovalidate.io-typed-array-function@infinitebrahmanuniverse/nolb-valida@moyuyc/github-create-repo@nader3456/zigbee2mqtt-frontend@kgryte/circleci-yml@kgryte/editorconfig@kgryte/examples-snippet@kgryte/gitattributes@kgryte/github-get@kgryte/gitignore@kgryte/http-server@kgryte/https-server@kgryte/jshintignore@kgryte/jshintrc@kgryte/license@kgryte/makefile@kgryte/node-module-snippet@kgryte/npmignore@kgryte/package-json@kgryte/readme@kgryte/server-cluster@kgryte/test-snippet@kgryte/todo@kgryte/travis-ymlparallel-boot-phasenpm-registry-package-infonpm-repo-urlseries-boot-phaseneural_compressor_ext_lab_customizedneural_compressor_ext_lab_customized_2npm-author-download-countsnpm-list-package-dependentsnpm-list-author-packagesnpm-package-download-countsresolve-app-pkginfogithub-starredgithub-subscriptionsgithub-star-repogithub-rank-followersgithub-rank-usersgithub-create-issuegithub-create-issue_modifiedgithub-create-repogithub-create-tokengithub-fetch-filegithub-org-reposgithub-followersgithub-followinggithub-user-detailsgithub-user-orgsgithub-user-rate-limitgithub-user-reposmath-relative-differenceargv-to-objectapp-etc-configapp-etc-loadapi-wandboxapp-bootconcept-netcompute-betalncompute-chebyshev-distancecompute-cosine-similaritycompute-cprodcompute-abscompute-addcompute-digammacompute-dividecompute-dotcompute-erfcompute-erfccompute-erfcinvcompute-erfinvcompute-euclidean-distancecompute-gammainccompute-gammaincinvcompute-gcdcompute-geq
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago