UNPKG

@scayle/storefront-core

Version:

Collection of essential utilities to work with the Storefront API

3 lines (2 loc) 146 B
const splitAndRemoveEmpty = (value, separator = "/") => value.split(separator).filter((string) => string !== ""); export { splitAndRemoveEmpty };