Package Exports
- split-keys
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-keys) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Split Keys

Gracefully declare properties aliases within objects. Split-keys splits comma-separated keys in object and for each key creates property alias.
Before:
var a = {
x: {
a: 1,
b: 1
}
};
//create alias
a.y = a.x;After:
//declare list of aliases
var a = splitKeys({
'x, y': {
a: 1,
b: 1
}
});Use
$ npm install split-keys
var splitKeys = require('split-keys');
var obj = splitKeys({
'a, b': function(){}
});
obj.a === obj.b //trueAPI
splitKeys(object)— split comma-separated propertiessplitKeys(object, deep)— split comma-separated properties, including inner objectssplitKeys(object, separator)— apply custom separator to split. Separator can be whether a string or a RegExp.splitKeys(object, separator, deep)orsplitKeys(object, deep, separator)— apply custom separator to deep split keys
