MCPcopy
hub / github.com/preactjs/preact / assign

Function assign

test/_util/helpers.jsx:14–17  ·  view source on GitHub ↗

* Assign properties from `props` to `obj` * @template O, P The obj and props types * @param {O} obj The object to copy properties to * @param {P} props The object to copy properties from * @returns {O & P}

(obj, props)

Source from the content-addressed store, hash-verified

12 * @returns {O & P}
13 */
14function assign(obj, props) {
15 for (let i in props) obj[i] = props[i];
16 return /** @type {O & P} */ (obj);
17}
18
19export function supportsPassiveEvents() {
20 let supported = false;

Callers 2

clearOptionsFunction · 0.70
teardownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…