1.0.0 • Published 3 years ago
@jswork/next-each-sibling v1.0.0
next-each-sibling
Each sibling for next.
installation
npm install -S @jswork/next-each-sibling
usage
import '@jswork/next-each-sibling';
const indexes = [4, 8, 12];
const res = [];
nx.eachSibling(indexes, (cur, next) => {
res.push([cur, next]);
});
// result
[
[4, 8],
[8, 12]
];
license
Code released under the MIT license.
1.0.0
3 years ago