Package Exports
- split-at
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (split-at) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
split-at 
Split a string at one or more indices
Install
$ npm install --save split-at
Usage
var splitAt = require('split-at');
splitAt('unicorn', 2);
//=> ['uni', 'corn']
splitAt('unicorn&rainbow', [6, 7]);
//=> ['unicorn', '&', 'rainbow']
API
splitAt(input, index)
input
Type: string
String to be split.
index
Type: number
, array
of number
One or more indices.
License
MIT © Sindre Sorhus