Skip to content

Check if string is inside quotation marks (21 styles)

License

Notifications You must be signed in to change notification settings

shelfio/is-string-in-quotes

Repository files navigation

is-string-in-quotes CircleCI npm (scoped)

Check if string is inside quotation marks. Supports 22 quotation styles (source)

Install

$ yarn add @shelf/is-string-in-quotes

Usage

const {isStringInQuotes} = require('@shelf/is-string-in-quotes');

isStringInQuotes('«hello»');
isStringInQuotes('„hello”');
isStringInQuotes('"hello"');

License

MIT © Shelf