Agregado toping en los menus

This commit is contained in:
Pablinux
2025-05-25 12:10:15 -05:00
parent c7aabd4d1f
commit 0b8549c63c
53 changed files with 3235 additions and 2916 deletions

View File

@@ -1,4 +1,4 @@
# Merge Descriptors
# merge-descriptors
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
@@ -27,12 +27,13 @@ animal.name === 'jon'
### merge(destination, source)
Redefines `destination`'s descriptors with `source`'s.
Redefines `destination`'s descriptors with `source`'s. The return value is the
`destination` object.
### merge(destination, source, false)
Defines `source`'s descriptors on `destination` if `destination` does not have
a descriptor by the same name.
a descriptor by the same name. The return value is the `destination` object.
## License

View File

@@ -31,7 +31,7 @@ var hasOwnProperty = Object.prototype.hasOwnProperty
* @public
*/
function merge(dest, src, redefine) {
function merge (dest, src, redefine) {
if (!dest) {
throw new TypeError('argument dest is required')
}
@@ -45,9 +45,9 @@ function merge(dest, src, redefine) {
redefine = true
}
Object.getOwnPropertyNames(src).forEach(function forEachOwnPropertyName(name) {
Object.getOwnPropertyNames(src).forEach(function forEachOwnPropertyName (name) {
if (!redefine && hasOwnProperty.call(dest, name)) {
// Skip desriptor
// Skip descriptor
return
}

View File

@@ -1,7 +1,7 @@
{
"name": "merge-descriptors",
"description": "Merge objects using descriptors",
"version": "1.0.1",
"version": "1.0.3",
"author": {
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
@@ -13,10 +13,17 @@
"Mike Grabowski <grabbou@gmail.com>"
],
"license": "MIT",
"repository": "component/merge-descriptors",
"repository": "sindresorhus/merge-descriptors",
"funding": "https://github.com/sponsors/sindresorhus",
"devDependencies": {
"istanbul": "0.4.1",
"mocha": "1.21.5"
"eslint": "5.9.0",
"eslint-config-standard": "12.0.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-node": "7.0.1",
"eslint-plugin-promise": "4.0.1",
"eslint-plugin-standard": "4.0.0",
"mocha": "5.2.0",
"nyc": "13.1.0"
},
"files": [
"HISTORY.md",
@@ -25,8 +32,8 @@
"index.js"
],
"scripts": {
"test": "mocha --reporter spec --bail --check-leaks test/",
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
"lint": "eslint .",
"test": "mocha test/",
"test-cov": "nyc --reporter=html --reporter=text npm test"
}
}