is-quoted ()
Determines whether a string is quoted, returning true or false as appropriate.
Parameters
$string
- The string which is being evaluated.
- Type
String
Return Value
Boolean
true
if the string quoted; otherwise,false
.
Example
@use '@sass-fairy/string';
@debug string.is-quoted('Roboto, Arial, sans-serif');
// true
@debug string.is-quoted(bold);
// false