Last active
December 1, 2019 23:12
-
-
Save d4rkr00t/1c23e3ea83f43d6fce1655936026b098 to your computer and use it in GitHub Desktop.
Codewars Helpers
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
const removeSpaces = str => str.replace(/\s/g, ''); | |
const pickObjProps = (obj, props) => props.reduce((acc, key) => obj[key] ? acc.concat([obj[key]]) : acc, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment