foop
Version:
interfaces that describe their intentions.
10 lines (9 loc) • 360 B
JavaScript
// const isStringPrimitive = require('../is/stringPrimitive')
//
// /**
// * Converts a value to a string, adding quotes if a string was provided.
// * @see https://github.com/facebook/immutable-js/blob/master/src/utils/quoteString.js
// */
// module.exports = function quoteString(x) {
// return isStringPrimitive(x) ? JSON.stringify(x) : String(x)
// }