Skip to content

feat: add isArray function#8

Merged
alinarublea merged 2 commits intomainfrom
isArray
Nov 30, 2023
Merged

feat: add isArray function#8
alinarublea merged 2 commits intomainfrom
isArray

Conversation

@alinarublea
Copy link
Copy Markdown
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
Copy Markdown
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

@github-actions
Copy link
Copy Markdown

This PR will trigger a minor release when merged.

@alinarublea alinarublea merged commit eeb45a6 into main Nov 30, 2023
@alinarublea alinarublea deleted the isArray branch November 30, 2023 12:55
@solaris007
Copy link
Copy Markdown
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