quotifier
Functions to recursively add and remove quotes to strings inside objects or arrays.
Usage
; const withQuotes = ; // } const withoutQuotes = ; // ] // it will also do this recursively inside the object or array that it is given: const deeperQuotes = ; // }
Why I use it
To define variables for Webpack.DefinePlugin
and then re-use that code to
to test the components/scripts that use those variables defined by the plugin.
Known limitations
Does not deal with any other data types aside from objects, arrays and strings... yet.