mapKeysByFunction this method creates an object with the same values as object and keys generated by running each own enumerable string keyed property of object thru mapper.
mapKeysByFunction({ 'a': 1, 'b': 2 }, (value, key) => key + value); // returns { 'a1': 1, 'b2': 2 }
{Record<any, T>}
Generated using TypeDoc
mapKeysByFunction this method creates an object with the same values as object and keys generated by running each own enumerable string keyed property of object thru mapper.
mapKeysByFunction({ 'a': 1, 'b': 2 }, (value, key) => key + value); // returns { 'a1': 1, 'b2': 2 }