Sha256: 86b9168642f46d547507465f71cbdd619459c8a90f30a951c9efe22b1cea29ae

Contents?: true

Size: 346 Bytes

Versions: 12

Compression:

Stored size: 346 Bytes

Contents

/**
 * 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}
 */
export function assign(obj, props) {
	for (let i in props) obj[i] = props[i];
	return /** @type {O & P} */ (obj);
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
isomorfeus-preact-10.6.14 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.13 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.12 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.11 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.10 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.9 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.8 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.7 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.6 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.5 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.4 node_modules/preact/debug/src/util.js
isomorfeus-preact-10.6.3 node_modules/preact/debug/src/util.js