Sha256: df8f719c2232705da60cfe935227c5dc7edd6990016319ab842d3c03c15d07e8
Contents?: true
Size: 450 Bytes
Versions: 274
Compression:
Stored size: 450 Bytes
Contents
var asciiToArray = require('./_asciiToArray'), hasUnicode = require('./_hasUnicode'), unicodeToArray = require('./_unicodeToArray'); /** * Converts `string` to an array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the converted array. */ function stringToArray(string) { return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); } module.exports = stringToArray;
Version data entries
274 entries across 272 versions & 30 rubygems