How to check if object is of type set in Node.js

1 Answer

0 votes
const st = new Set(['javascript', 'typescript', 'node.js', 'python']);
  
console.log(st instanceof Set);


  
/*
run:
  
true
  
*/

 



answered Jun 23, 2022 by avibootz

Related questions

1 answer 149 views
2 answers 198 views
1 answer 142 views
2 answers 152 views
1 answer 120 views
2 answers 200 views
...