MCPcopy
hub / github.com/axios/axios / define

Function define

lib/utils.js:794–798  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

792 const obj = {};
793
794 const define = (arr) => {
795 arr.forEach((value) => {
796 obj[value] = true;
797 });
798 };
799
800 isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
801

Callers 1

toObjectSetFunction · 0.85

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected