Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@putout/plugin-remove-duplicate-keys) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@putout/plugin-remove-duplicate-keys 
An object initializer is a comma-delimited list of zero or more pairs of property names and associated values of an object, enclosed in curly braces (
{}).(c) MDN
πPutout plugin adds ability to find and remove duplecate keys.
Install
npm i @putout/plugin-remove-duplicate-keysRule
{
"rules": {
"remove-duplicate-keys": "on"
}
}β Example of incorrect code
const a = {
x: 'hello',
...z,
x: 'world',
};β Example of correct code
const a = {
...z,
x: 'world',
};SyntaxError: Duplicate parameter name not allowed in this context
(c) MDN
Argument name clash:
-const a = ({b, b, ...c}) => {};
+const a = ({b, ...c}) => {};License
MIT