_.isWeakSet

_.isWeakSet(value)

Checks if value is classified as a WeakSet object.

Since

4.3.0

Arguments

  1. value (*): The value to check.

Returns

(boolean): Returns true if value is a weak set, else false.

Example

_.isWeakSet(new WeakSet);
// => true
 
_.isWeakSet(new Set);
// => false
doc_Lodash
2016-11-27 16:38:37
Comments
Leave a Comment

Please login to continue.