find-closing-symbol

1.1.0 • Public • Published

find-closing-symbol

Build Status Coverage Status Code Climate

Find closing symbol (parentheses, curly braces...)

Install

npm i find-closing-symbol

Usage

var findClosingSymbol = require('find-closing-symbol');
var findClosingParenthesis = findClosingSymbol('(', ')');

findClosingParenthesis('2 + (5 + 1)) * 5'); // => 12

See spec.

/find-closing-symbol/

    Package Sidebar

    Install

    npm i find-closing-symbol

    Weekly Downloads

    3

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • javiercejudo