Skip to content

v2.2.0 renameValues createIndex

Latest
Compare
Choose a tag to compare
@webmasterkai webmasterkai released this 29 Nov 13:37
· 4 commits to master since this release
  • renameValues(renameObj)(strArray) - renameObj = { find: 'replace' } Similar to rename but find/replace strings in array.
  • createIndex('id', 'value')(dataArray) - Creates a key/value index from an array of items. It's like _.indexBy but uses the field value of value property instead of the entire item.