Skip to content

entries

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

Get entries of string, like Array.entries().

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

entries('ship');
// [[0, 's'], [1, 'h'], [2, 'i'], [3, 'p']]
entries('');
// []

extra-string

Clone this wiki locally