mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
internal: use util.types to migrate DEP0103 in Node.js (#3704)
- Use require('util').types instead of using process.binding('util')
to get the type checking helpers
- Rename nodeUtil to nodeTypes since that is what it is for
Refs: https://github.com/nodejs/node/pull/18415
This commit is contained in:
committed by
John-David Dalton
parent
6e4cdc0c5e
commit
363fef0efc
4
isSet.js
4
isSet.js
@@ -1,9 +1,9 @@
|
||||
import getTag from './.internal/getTag.js'
|
||||
import nodeUtil from './.internal/nodeUtil.js'
|
||||
import nodeTypes from './.internal/nodeTypes.js'
|
||||
import isObjectLike from './isObjectLike'
|
||||
|
||||
/* Node.js helper references. */
|
||||
const nodeIsSet = nodeUtil && nodeUtil.isSet
|
||||
const nodeIsSet = nodeTypes && nodeTypes.isSet
|
||||
|
||||
/**
|
||||
* Checks if `value` is classified as a `Set` object.
|
||||
|
||||
Reference in New Issue
Block a user