Updated documentation for new functions
This commit is contained in:
parent
3d241c2f8b
commit
2cefaa19aa
14
README.md
14
README.md
@ -149,7 +149,7 @@ functions:
|
|||||||
|
|
||||||
### Util: Array and string manipulation functions ###
|
### Util: Array and string manipulation functions ###
|
||||||
|
|
||||||
** functions:**
|
** functions: **
|
||||||
|
|
||||||
* object_keys: Gets the name of the properties of an object
|
* object_keys: Gets the name of the properties of an object
|
||||||
|
|
||||||
@ -159,6 +159,18 @@ functions:
|
|||||||
|
|
||||||
$_.util.object_values(object);
|
$_.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);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user