Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@stdlib/assert-is-booleanarray

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/assert-is-booleanarray - npm Package Compare versions

Comparing version
0.0.2
to
0.0.3
+1
-1
dist/index.js.map
{
"version": 3,
"sources": ["../lib/main.js", "../lib/index.js"],
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar BooleanArray = require( '@stdlib/array-bool' );\nvar constructorName = require( '@stdlib/utils-constructor-name' );\n\n\n// MAIN //\n\n/**\n* Tests if a value is a Complex64Array.\n*\n* @param {*} value - value to test\n* @returns {boolean} boolean indicating whether a value is a BooleanArray\n*\n* @example\n* var BooleanArray = require( '@stdlib/array-bool' );\n*\n* var bool = isBooleanArray( new BooleanArray( 10 ) );\n* // returns true\n*\n* @example\n* var bool = isBooleanArray( [] );\n* // returns false\n*/\nfunction isBooleanArray( value ) {\n\treturn (\n\t\tvalue instanceof BooleanArray ||\n\t\tconstructorName( value ) === 'BooleanArray'\n\t);\n}\n\n\n// EXPORTS //\n\nmodule.exports = isBooleanArray;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Test if a value is a BooleanArray.\n*\n* @module @stdlib/assert-is-booleanarray\n*\n* @example\n* var BooleanArray = require( '@stdlib/array-bool' );\n* var isBooleanArray = require( '@stdlib/assert-is-booleanarray' );\n*\n* var bool = isBooleanArray( new BooleanArray( 10 ) );\n* // returns true\n*\n* bool = isBooleanArray( [] );\n* // returns false\n*/\n\n// MODULES //\n\nvar isBooleanArray = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = isBooleanArray;\n"],
"sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar BooleanArray = require( '@stdlib/array-bool' );\nvar constructorName = require( '@stdlib/utils-constructor-name' );\n\n\n// MAIN //\n\n/**\n* Tests if a value is a BooleanArray.\n*\n* @param {*} value - value to test\n* @returns {boolean} boolean indicating whether a value is a BooleanArray\n*\n* @example\n* var BooleanArray = require( '@stdlib/array-bool' );\n*\n* var bool = isBooleanArray( new BooleanArray( 10 ) );\n* // returns true\n*\n* @example\n* var bool = isBooleanArray( [] );\n* // returns false\n*/\nfunction isBooleanArray( value ) {\n\treturn (\n\t\tvalue instanceof BooleanArray ||\n\t\tconstructorName( value ) === 'BooleanArray'\n\t);\n}\n\n\n// EXPORTS //\n\nmodule.exports = isBooleanArray;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Test if a value is a BooleanArray.\n*\n* @module @stdlib/assert-is-booleanarray\n*\n* @example\n* var BooleanArray = require( '@stdlib/array-bool' );\n* var isBooleanArray = require( '@stdlib/assert-is-booleanarray' );\n*\n* var bool = isBooleanArray( new BooleanArray( 10 ) );\n* // returns true\n*\n* bool = isBooleanArray( [] );\n* // returns false\n*/\n\n// MODULES //\n\nvar isBooleanArray = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = isBooleanArray;\n"],
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAe,QAAS,oBAAqB,EAC7CC,EAAkB,QAAS,gCAAiC,EAqBhE,SAASC,EAAgBC,EAAQ,CAChC,OACCA,aAAiBH,GACjBC,EAAiBE,CAAM,IAAM,cAE/B,CAKAJ,EAAO,QAAUG,IChBjB,IAAIE,EAAiB,IAKrB,OAAO,QAAUA",
"names": ["require_main", "__commonJSMin", "exports", "module", "BooleanArray", "constructorName", "isBooleanArray", "value", "isBooleanArray"]
}

@@ -30,3 +30,3 @@ /**

/**
* Tests if a value is a Complex64Array.
* Tests if a value is a BooleanArray.
*

@@ -33,0 +33,0 @@ * @param {*} value - value to test

+1
-1

@@ -1,1 +0,1 @@

Copyright (c) 2016-2024 The Stdlib Authors.
Copyright (c) 2016-2026 The Stdlib Authors.
{
"name": "@stdlib/assert-is-booleanarray",
"version": "0.0.2",
"version": "0.0.3",
"description": "Test if a value is a BooleanArray.",

@@ -33,4 +33,4 @@ "license": "Apache-2.0",

"dependencies": {
"@stdlib/array-bool": "^0.0.1",
"@stdlib/utils-constructor-name": "^0.2.2"
"@stdlib/array-bool": "^0.1.1",
"@stdlib/utils-constructor-name": "^0.2.3"
},

@@ -37,0 +37,0 @@ "devDependencies": {},

@@ -131,3 +131,3 @@ <!--

bool = isBooleanArray( new Array( 10 ) );
bool = isBooleanArray( [] );
// returns false

@@ -180,3 +180,3 @@

Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].

@@ -194,4 +194,4 @@ </section>

[test-image]: https://github.com/stdlib-js/assert-is-booleanarray/actions/workflows/test.yml/badge.svg?branch=v0.0.2
[test-url]: https://github.com/stdlib-js/assert-is-booleanarray/actions/workflows/test.yml?query=branch:v0.0.2
[test-image]: https://github.com/stdlib-js/assert-is-booleanarray/actions/workflows/test.yml/badge.svg?branch=v0.0.3
[test-url]: https://github.com/stdlib-js/assert-is-booleanarray/actions/workflows/test.yml?query=branch:v0.0.3

@@ -208,4 +208,4 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-booleanarray/main.svg

[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
[chat-url]: https://stdlib.zulipchat.com

@@ -212,0 +212,0 @@ [stdlib]: https://github.com/stdlib-js/stdlib