Utilities for working with objects.
- Source:
Methods
(static) getPartialMatchedProps(ob, match) → {Object}
Returns the properties of an object whose keys partially match the provided string.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ob |
Object | The object to get properties from. |
match |
String | The string to match keys against. |
Returns:
- The object containing only the properties whose keys partiallly matched.
- Type
- Object
ReactUtils.getPartialMatchedProps({foo: 'foo', baz: 'baz', fool: 'fool'}, 'foo');
(static) querify(ob) → {String}
Creates a query string representation of an object.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ob |
Object | The object to querify. |
Returns:
- The query string output.
- Type
- String
ObjectUtils.querify({foo: 'hello', baz: 'there'});