UNPKG

strility

Version:

Strility is a string manipulation library

10 lines (7 loc) 204 B
const isString = require('./is-string'); module.exports = function chars(input) { if (!isString(input)) { throw new TypeError('Input is not a string!'); } return input.split(''); };