renameValues(renameObj)(strArray)
- renameObj = { find: 'replace' } Similar torename
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 ofvalue
property instead of the entire item.