assert-is-equal-booleanarray

Test if two arguments are both BooleanArrays and have equal values.

https://github.com/flinchtheflincher/assert-is-equal-booleanarray

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.3%) to scientific vocabulary

Keywords

assert assertion equal is isequal issame issamevalue isstrictequal javascript nodejs same stdlib strict type util utilities utility utils
Last synced: 6 months ago · JSON representation ·

Repository

Test if two arguments are both BooleanArrays and have equal values.

Basic Info
  • Host: GitHub
  • Owner: flinchtheflincher
  • License: apache-2.0
  • Language: JavaScript
  • Default Branch: main
  • Size: 45.9 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
assert assertion equal is isequal issame issamevalue isstrictequal javascript nodejs same stdlib strict type util utilities utility utils
Created 9 months ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Security

README.md

Assert Is Equal BooleanArray

GitHub release GitHub issues GitHub forks GitHub stars

Overview

Welcome to the Assert Is Equal BooleanArray repository. This utility helps you test if two arguments are both BooleanArrays and have equal values. It's a simple yet powerful tool for ensuring data integrity in your JavaScript applications.

Table of Contents

Features

  • Type Safety: Ensures both arguments are BooleanArrays.
  • Value Comparison: Compares the values of both arrays for equality.
  • Lightweight: Minimal footprint, making it easy to integrate into existing projects.
  • JavaScript and Node.js Support: Works seamlessly in both environments.

Installation

To install the package, use npm or yarn:

bash npm install assert-is-equal-booleanarray

or

bash yarn add assert-is-equal-booleanarray

Usage

To use the utility, import it into your project:

javascript const assertIsEqualBooleanArray = require('assert-is-equal-booleanarray');

Then, you can use it in your code as follows:

```javascript const arr1 = new BooleanArray([true, false, true]); const arr2 = new BooleanArray([true, false, true]);

const result = assertIsEqualBooleanArray(arr1, arr2); console.log(result); // true or false ```

Examples

Here are some examples of how to use the utility:

Example 1: Equal BooleanArrays

```javascript const arr1 = new BooleanArray([true, false, true]); const arr2 = new BooleanArray([true, false, true]);

const result = assertIsEqualBooleanArray(arr1, arr2); console.log(result); // true ```

Example 2: Unequal BooleanArrays

```javascript const arr1 = new BooleanArray([true, false, true]); const arr2 = new BooleanArray([false, true, true]);

const result = assertIsEqualBooleanArray(arr1, arr2); console.log(result); // false ```

Example 3: Different Lengths

```javascript const arr1 = new BooleanArray([true, false]); const arr2 = new BooleanArray([true, false, true]);

const result = assertIsEqualBooleanArray(arr1, arr2); console.log(result); // false ```

API Reference

assertIsEqualBooleanArray(arr1, arr2)

  • Parameters:

    • arr1: The first BooleanArray to compare.
    • arr2: The second BooleanArray to compare.
  • Returns: true if both arrays are equal; otherwise, false.

Example:

javascript const isEqual = assertIsEqualBooleanArray(new BooleanArray([true]), new BooleanArray([true])); console.log(isEqual); // true

Contributing

We welcome contributions to this project. If you have suggestions for improvements or new features, please feel free to open an issue or submit a pull request.

Steps to Contribute

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push to your forked repository.
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Release Information

For the latest releases, please visit our Releases page. Download the latest version and follow the installation instructions to get started.

Conclusion

The Assert Is Equal BooleanArray utility is a straightforward tool for ensuring that your BooleanArrays are equal. By using this utility, you can maintain data integrity and simplify your testing processes. Whether you are working in JavaScript or Node.js, this utility can enhance your development experience.

For more information on the latest releases, visit the Releases section.

Owner

  • Name: Priyam Thapa
  • Login: flinchtheflincher
  • Kind: user

Exploring

Citation (CITATION.cff)

cff-version: 1.2.0
title: stdlib
message: >-
  If you use this software, please cite it using the
  metadata from this file.

type: software

authors:
  - name: The Stdlib Authors
    url: https://github.com/stdlib-js/stdlib/graphs/contributors

repository-code: https://github.com/stdlib-js/stdlib
url: https://stdlib.io

abstract: |
  Standard library for JavaScript and Node.js.

keywords:
  - JavaScript
  - Node.js
  - TypeScript
  - standard library
  - scientific computing
  - numerical computing
  - statistical computing

license: Apache-2.0 AND BSL-1.0

date-released: 2016

GitHub Events

Total
  • Push event: 384
  • Create event: 2
Last Year
  • Push event: 384
  • Create event: 2

Dependencies

package.json npm
  • @stdlib/array-bool ^0.1.0 development
  • @stdlib/array-typed ^0.3.0 development
  • @stdlib/assert-is-boolean ^0.2.2 development
  • @stdlib/bench-harness ^0.2.2 development
  • @stdlib/boolean-ctor ^0.2.2 development
  • @stdlib/math-base-special-pow ^0.3.0 development
  • istanbul ^0.4.1 development
  • tap-min git+https://github.com/Planeshifter/tap-min.git development
  • tape git+https://github.com/kgryte/tape.git#fix/globby development
  • @stdlib/array-base-assert-has-equal-values github:stdlib-js/array-base-assert-has-equal-values#main
  • @stdlib/assert-is-booleanarray ^0.0.2