UNPKG

@extra-array/lists

Version:

Gives lists of keys, and values.

12 lines (9 loc) 162 B
'use strict'; /** * Gives lists of keys, and values. * @param x an array */ function lists(x) { return [x.keys(), x.values()]; } module.exports = lists;