* 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)
| 12 | * @returns {O & P} |
| 13 | */ |
| 14 | function assign(obj, props) { |
| 15 | for (let i in props) obj[i] = props[i]; |
| 16 | return /** @type {O & P} */ (obj); |
| 17 | } |
| 18 | |
| 19 | export function supportsPassiveEvents() { |
| 20 | let supported = false; |
no outgoing calls
no test coverage detected
searching dependent graphs…