New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update flatMap.ts #5771
base: main
Are you sure you want to change the base?
Update flatMap.ts #5771
Conversation
Updated to arrow function
Updated flatMapDeep.ts function to arrow func
updated flatMapDepth.ts func to arrow func
Updated before.ts to arrow function
Updated Capitalize.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const
doesn't do default export
} | ||
|
||
export default flatMapDeep; | ||
export const flatMapDeep = (collection, iteratee) => baseFlatten(map(collection, iteratee), INFINITY); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const
doesn't do default export
@@ -13,12 +13,12 @@ | |||
* jQuery(element).on('click', before(5, addContactToList)) | |||
* // => Allows adding up to 4 contacts to the list. | |||
*/ | |||
function before(n, func) { | |||
export const before = (n, func) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const
doesn't do default export
@@ -21,9 +21,8 @@ import map from './map.js'; | |||
* flatMapDepth([1, 2], duplicate, 2) | |||
* // => [[1, 1], [2, 2]] | |||
*/ | |||
function flatMapDepth(collection, iteratee, depth) { | |||
export const flatMapDepth = (collection, iteratee, depth) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const
doesn't do default export
Updated to arrow function