UNPKG

@shopify/shopify-api

Version:

Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks

11 lines (8 loc) 303 B
'use strict'; function splitN(str, sep, maxNumParts) { const parts = str.split(sep); const maxParts = Math.min(Math.abs(maxNumParts), parts.length); return [...parts.slice(0, maxParts - 1), parts.slice(maxParts - 1).join(sep)]; } exports.splitN = splitN; //# sourceMappingURL=utils.js.map