Underscore.js _.isWeakSet() Function (original) (raw)

Last Updated : 10 Jul, 2020

Underscore.js is a JavaScript library that makes operations on arrays, string, objects much easier and handy. he _.isWeakSet() function is used to check whether the given object is JavaScript weakset or not. When linking the underscore.js CDN, the "_" is attached to the browser as global variable.Syntax :

_.isWeakSet( object );

Parameters:

Return Value: It returns the boolean value. If the set is a weak set it returns true otherwise returns false.Example 1: When a weak set is given it returns true.

html ``

<script src=

"" title="undefined" rel="noopener noreferrer">https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js">