diff --git a/README.md b/README.md index d7be222..3f4ad63 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ functions: ### Util: Array and string manipulation functions ### -** functions:** +** functions: ** * object_keys: Gets the name of the properties of an object @@ -159,6 +159,18 @@ functions: $_.util.object_values(object); +* object_merge: Merges two objects' keys and values + + $_.util.object_merge(object1, object2); + +* array_combine: Creates an object with the keys of the first array, and the values of the second + + $_.util.array_combine(keys, values); + +* str_trans: Similar to the PHP function strtr, replaces string pairs in a GREEDY fashion + + $_.util.str_trans(string, from, to); OR $_.util.str_trans(string, replace_pairs_object); +