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.

Package Sidebar

Install

npm i find-closing-symbol

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • javiercejudo