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 133 views
2 answers 180 views
1 answer 137 views
2 answers 136 views
1 answer 110 views
2 answers 188 views
...