@stdlib/assert-tools
v0.2.2
Published
Assertion utility tools.
Downloads
24
Readme
Assert
Assertion utility tools.
Installation
npm install @stdlib/assert-tools
Usage
var tools = require( '@stdlib/assert-tools' );
tools
Namespace for assertion utility tools.
var o = tools;
// returns {...}
The namespace contains the following:
arrayfcn( predicate )
: return a function which tests if every element in an array passes a test condition.arraylikefcn( predicate )
: return a function which tests if every element in an array-like object passes a test condition.typedarrayfcn( predicate )
: return a function which tests if every element in a typed array passes a test condition.
Examples
var objectKeys = require( '@stdlib/utils-keys' );
var tools = require( '@stdlib/assert-tools' );
console.log( objectKeys( tools ) );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.