mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-17 04:56:34 +02:00
💄 Code formatting
This commit is contained in:
parent
4f5711c7e3
commit
3019d96ad9
|
@ -612,7 +612,7 @@ export const reduceToValues = (items, key = 'value') => {
|
||||||
export const fetchFromObject = function (object, properties){
|
export const fetchFromObject = function (object, properties){
|
||||||
const index = properties.indexOf('.');
|
const index = properties.indexOf('.');
|
||||||
|
|
||||||
if(index > -1){
|
if (index > -1){
|
||||||
return fetchFromObject(object[properties.substring(0, index)], properties.substr(index + 1));
|
return fetchFromObject(object[properties.substring(0, index)], properties.substr(index + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue