MCPcopy
hub / github.com/pqina/filepond / createObject

Function createObject

src/js/utils/createObject.js:4–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { forin } from './forin';
3
4export const createObject = definition => {
5 const obj = {};
6 forin(definition, property => {
7 defineProperty(obj, property, definition[property]);
8 });
9 return obj;
10};

Callers 6

createAppFunction · 0.90
createOptionsFunction · 0.90
createItemFunction · 0.90
createViewFunction · 0.90
springFunction · 0.90
tweenFunction · 0.90

Calls 2

forinFunction · 0.90
definePropertyFunction · 0.90

Tested by

no test coverage detected