MCPcopy
hub / github.com/axios/axios / isFlatArray

Function isFlatArray

lib/helpers/toFormData.js:62–64  ·  view source on GitHub ↗

* If the array is an array and none of its elements are visitable, then it's a flat array. * * @param {Array<any>} arr - The array to check * * @returns {boolean}

(arr)

Source from the content-addressed store, hash-verified

60 * @returns {boolean}
61 */
62function isFlatArray(arr) {
63 return utils.isArray(arr) && !arr.some(isVisitable);
64}
65
66const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
67 return /^is[A-Z]/.test(prop);

Callers 1

defaultVisitorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected