MCPcopy
hub / github.com/less/less.js / merge

Function merge

packages/less/lib/less/utils.js:101–108  ·  view source on GitHub ↗
(obj1, obj2)

Source from the content-addressed store, hash-verified

99}
100
101export function merge(obj1, obj2) {
102 for (const prop in obj2) {
103 if (Object.prototype.hasOwnProperty.call(obj2, prop)) {
104 obj1[prop] = obj2[prop];
105 }
106 }
107 return obj1;
108}
109
110export function flattenArray(arr, result = []) {
111 for (let i = 0, length = arr.length; i < length; i++) {

Callers

nothing calls this directly

Calls 1

callMethod · 0.80

Tested by

no test coverage detected