unquote

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string

Remove the quotes of a string Types of quotes removed :

  • ", ', , ’`‘

Params

  1. string*-String

    The string to process

  2. settings{}TUnquoteSettings

    Some settings to configure your unquoting process

Return

  1. -String

    The unquoted string

Example

import { unquote } from '@blackbyte/sugar/string'
unquote("'Hello world'") // "Hello world"

Todo

  • testsnormal