mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
util: move util.isBoolean to eol
PR-URL: https://github.com/nodejs/node/pull/52744 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
ac97a532f5
commit
be528ab11e
4 changed files with 5 additions and 45 deletions
12
lib/util.js
12
lib/util.js
|
@ -91,15 +91,6 @@ function lazyAbortController() {
|
|||
|
||||
let internalDeepEqual;
|
||||
|
||||
/**
|
||||
* @deprecated since v4.0.0
|
||||
* @param {any} arg
|
||||
* @returns {arg is boolean}
|
||||
*/
|
||||
function isBoolean(arg) {
|
||||
return typeof arg === 'boolean';
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since v4.0.0
|
||||
* @param {any} arg
|
||||
|
@ -419,9 +410,6 @@ module.exports = {
|
|||
isArray: deprecate(ArrayIsArray,
|
||||
'The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.',
|
||||
'DEP0044'),
|
||||
isBoolean: deprecate(isBoolean,
|
||||
'The `util.isBoolean` API is deprecated. Please use `typeof arg === "boolean"` instead.',
|
||||
'DEP0045'),
|
||||
isBuffer: deprecate(isBuffer,
|
||||
'The `util.isBuffer` API is deprecated. Please use `Buffer.isBuffer()` instead.',
|
||||
'DEP0046'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue