Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up"Expected consistent spacing" when chaining #299
Comments
This comment has been minimized.
This comment has been minimized.
|
Ah, it wasn't leading space is was the space before const filtered = (props, prefix) => {
if (typeof prefix === 'string') prefix = new RegExp(`^${prefix}`)
return Object.keys(props)
.filter(key => prefix.test(key))
.map(key => ({[unprefixify(prefix, key)]: props[key]}))
.reduce((props, prop) => ({ ...props, ...prop }), {})
} |
reggi
closed this
Oct 20, 2015
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
reggi commentedOct 20, 2015
I'm getting
Expected consistent spacingwarning and I'm not sure why, here's the code: