parenthesize
Wrap a string in parens, brackets, or whatever else you want.
Synopsis
var assert = var parenthesize =
parenthesize
is a function that will wrap a given value in parenthesis:
assert
You can replace the parens by providing an alternative delimiter:
assert
If you want multi-character or other unusual delimiters, use an array for the second argument:
assert
API
module.exports = (String, (String|Array<String>)? ) => String
LIcense
MIT