Skip to content

Conversation

Naresh-kumar-Thodupunoori

Resolves #2325 .

Description

What is the purpose of this pull request?

This pull request:

  • It adds the package @stdlib/array/base/cunone-by

Related Issues

Does this pull request have any related issues?

This pull request:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

Copy link
Contributor

@stdlib-bot stdlib-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 Hi there! 👋

And thank you for opening your first pull request! We will review it shortly. 🏃 💨

@Naresh-kumar-Thodupunoori
Copy link
Author

@kgryte can you please review this !!!!!

@kgryte kgryte added the Feature Issue or pull request for adding a new feature. label Jul 18, 2024
@kgryte kgryte changed the title Pull Request to [RFC]: add @stdlib/array/base/cunone-by #2325 feat: add array/base/cunone-by Jul 18, 2024
@kgryte kgryte added Needs Review A pull request which needs code review. Utilities Issue or pull request concerning general utilities. labels Jul 18, 2024
Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left an initial review. Main comment is that you need to carefully follow project conventions. Please try to ensure consistency with the rest of the project.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This README needs to be updated, as it does not match the style and conventions of other similar files in this project. Please update.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am working on it, actually having some examinations up my sleeve.So preparing for them.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation of this file is off.

}
}

main(); No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add trailing newlines. Please ensure EditorConfig is installed as discussed in the contributing guidelines.

if ( !isArray( y ) || y !== out ) {
b.fail( 'should return the output array' );
}
for ( i = 0; i < y.length; i++ ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is unnecessary. Remove.

@@ -0,0 +1,52 @@
{{alias}}( x, predicate )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Match the conventions used elsewhere in this project.

"type": "opencollective",
"url": "https://opencollective.com/stdlib"
}
} No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing newlines here and everywhere.

});

tape( 'the function handles arrays with all elements failing the test', function test( t ) {
var x = [ -1, -2, -3, -4, -5 ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of declarations violates our lint rules. Make sure you have run make init to ensure automation runs on commit and push.

}
});

// Add more tests as needed No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this comment here?


tape( 'the function returns an array', function test( t ) {
var out = cunoneBy( [1, 2, 3], function() { return true; } );
t.strictEqual( Array.isArray(out), true, 'returns an array' );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use the builtin isArray. Use our utility package.

@kgryte
Copy link
Member

kgryte commented Jul 26, 2024

Additionally all build failures need to be addressed before this PR can be merged or considered for further review.

@kgryte kgryte added Needs Changes Pull request which needs changes before being merged. and removed Needs Review A pull request which needs code review. labels Jul 26, 2024
@Planeshifter
Copy link
Member

Closing as another PR with this package has meanwhile been merged. Thanks for your efforts and interest in stdlib either way!

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

Labels

Feature Issue or pull request for adding a new feature. Needs Changes Pull request which needs changes before being merged. Utilities Issue or pull request concerning general utilities.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFC]: add @stdlib/array/base/cunone-by

4 participants