@aegenet/belt-symbols-is-balanced
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

npm version

@aegenet/belt-symbols-is-balanced

Symbols is balanced ([, ( {) ?

💾 Installation

yarn add @aegenet/belt-symbols-is-balanced@^2.0.0
# or
npm i @aegenet/belt-symbols-is-balanced@^2.0.0

📝 Usage

import { symbolsIsBalanced } from '@aegenet/belt-symbols-is-balanced';

symbolsIsBalanced('( { [ () [] ] } )') // true
symbolsIsBalanced('( { [ ') // false

symbolsIsBalanced('( 1 === 1 )') // true
symbolsIsBalanced('( (1 === 1) )') // true
symbolsIsBalanced('( ([1] === [1]) )') // true
symbolsIsBalanced('( ([1] {===} [1]) )') // true

symbolsIsBalanced('( /* (( */ )') // true

Readme

Keywords

Package Sidebar

Install

npm i @aegenet/belt-symbols-is-balanced

Weekly Downloads

71

Version

2.3.0

License

MIT

Unpacked Size

4.99 kB

Total Files

7

Last publish

Collaborators

  • agenet