Sha256: 280519acd4a77c0a790d5612f576c53014bc92bbac6e718265345c52c1bd61fb
Contents?: true
Size: 335 Bytes
Versions: 69
Compression:
Stored size: 335 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
69 entries across 69 versions & 1 rubygems