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

util.isArray() is deprecated #265

Open
thom-nic opened this issue Jan 18, 2025 · 0 comments
Open

util.isArray() is deprecated #265

thom-nic opened this issue Jan 18, 2025 · 0 comments

Comments

@thom-nic
Copy link

Looks like there is one lingering use of util.isArray() whereas Array.isArray() is appropriately used elsewhere. This would amount to a cleanup task to stop triggering the warning (and avoid issues w/ future nodejs versions.)

if (typeof (oid) === 'object' && util.isArray(oid)) {

The error:

(node:29436) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant