diff --git a/src/utils.js b/src/utils.js index d74b4dfbe38..4c0c4cb560b 100644 --- a/src/utils.js +++ b/src/utils.js @@ -5,6 +5,9 @@ import includes from 'core-js/library/fn/array/includes'; import { parse } from './url'; const CONSTANTS = require('./constants'); +export { default as deepAccess } from 'dlv'; +export { default as deepSetValue } from 'dset'; + var _loggingChecked = false; var tArr = 'Array'; @@ -966,21 +969,6 @@ export function groupBy(xs, key) { }, {}); } -/** - * deepAccess utility function useful for doing safe access (will not throw exceptions) of deep object paths. - * @param {Object} obj The object containing the values you would like to access. - * @param {string|number} path Object path to the value you would like to access. Non-strings are coerced to strings. - * @returns {*} The value found at the specified object path, or undefined if path is not found. - */ -export { default as deepAccess } from 'dlv'; - -/** - * @param {Object} obj The object to set a deep property value in - * @param {(string|Array.)} path Object path to the value you would like ot set. - * @param {*} value The value you would like to set - */ -export { default as deepSetValue } from 'dset'; - /** * Returns content for a friendly iframe to execute a URL in script tag * @param {string} url URL to be executed in a script tag in a friendly iframe