Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Update flatMap.ts #5771

wants to merge 5 commits into from

Conversation

HarishRMaryada
Copy link

Updated to arrow function

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
Copy link

@JakeerC JakeerC left a 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);
Copy link

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) => {
Copy link

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) => {
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants