@samuel-lewis/utils
v1.0.0
Published
![](https://img.shields.io/npm/v/@samuel-lewis/utils?style=flat-square&logo=npm)
Downloads
14
Readme
@samuel-lewis/utils
A collection of various Javascript utilities.
Array
divide
: Divides an array into two parts based on a given predicatesplit
: Given two arrays, finds their unique and intersecting values
Slug
toSlug
: toSlug converts a string to a url safe slugtoUniqueSlug
: toUniqueSlug does the same astoSlug
, with addition of a unique ID