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

feat: add isArray function #8

Merged
merged 2 commits into from
Nov 30, 2023
Merged

feat: add isArray function #8

merged 2 commits into from
Nov 30, 2023

Conversation

alinarublea
Copy link
Contributor

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

* @returns {boolean} True if the parameter is an array, false otherwise.
*/
function isArray(value) {
return Array.isArray(value);
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need the roundtrip through the utils for this? Are we planning any additional checks in the future?

Also we could reuse the util function in isObject and arrayEquals

Copy link

This PR will trigger a minor release when merged.

@alinarublea alinarublea merged commit eeb45a6 into main Nov 30, 2023
3 checks passed
@alinarublea alinarublea deleted the isArray branch November 30, 2023 12:55
@solaris007
Copy link
Member

🎉 This PR is included in version @adobe/spacecat-shared-utils-v1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants