(obj: any, ...exts: any[])
| 109 | const hasOwnProperty = Obj.has; |
| 110 | |
| 111 | const extend = (obj: any, ...exts: any[]): any => { |
| 112 | for (let i = 0; i < exts.length; i++) { |
| 113 | const ext = exts[i]; |
| 114 | for (const name in ext) { |
| 115 | if (Obj.has(ext, name)) { |
| 116 | const value = ext[name]; |
| 117 | if (value !== undefined) { |
| 118 | obj[name] = value; |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | return obj; |
| 124 | }; |
| 125 | |
| 126 | /** |
| 127 | * Executed the specified function for each item in a object tree. |
no test coverage detected
searching dependent graphs…