Skip to content
Subhajit Sahu edited this page May 5, 2020 · 1 revision

Get keys of string, like Object.keys().

const keys = require('@extra-string/keys');
// keys(<string>)

keys('ash');
// [0, 1, 2]
keys('');
// []

extra-string

Clone this wiki locally