Last active
September 11, 2018 16:51
-
-
Save rafagarcia/e36cbd5f5de89c994496c240d1609226 to your computer and use it in GitHub Desktop.
JS Bin// source http://jsbin.com/wadefu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Destructuring with rest parameter | |
let {_internal, tooBig, ...cleanObject} = {el1: '1', _internal:"secret", tooBig:{}, el2: '2', el3: '3'}; | |
console.log(cleanObject); // {el1: '1', el2: '2', el3: '3'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment