frontend/.pnpm-store/v3/files/ba/5987dfb20d82c27ef5f5bdc85ee137af167d14e613610e65e731b624d125c7b7ca204a02816da9d798996b17ddd14e66ab1b9bef05e0727651905f25c6baca

12 lines
335 B
Plaintext

/**
* 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);
}