mirror of
https://github.com/thangisme/notes.git
synced 2025-10-15 20:34:22 -04:00
Initial commit
This commit is contained in:
17
node_modules/stylelint/lib/testUtils/mergeTestDescriptions.js
generated
vendored
Normal file
17
node_modules/stylelint/lib/testUtils/mergeTestDescriptions.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict"
|
||||
|
||||
const _ = require("lodash")
|
||||
|
||||
module.exports = function () {
|
||||
const mergeWithArgs = [{}]
|
||||
Array.from(arguments).forEach((arg) => mergeWithArgs.push(arg))
|
||||
mergeWithArgs.push(mergeCustomizer)
|
||||
|
||||
return _.mergeWith.apply(_, mergeWithArgs)
|
||||
}
|
||||
|
||||
function mergeCustomizer(objValue, srcValue) {
|
||||
if (_.isArray(objValue, mergeCustomizer)) {
|
||||
return objValue.concat(srcValue)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user