JavaScript by Victor Talmacinschi β’ June 21, 2022
const mySet = new Set(['π', 'π', 'π']);
// check if mySet is a Set
if (mySet instanceof Set) {
console.log('mySet is a Set');
} else {
console.log('mySet is not a Set');
}
0
19.286
JavaScript by Victor Talmacinschi β’ June 21, 2022
if (obj instanceof Set) {
console.log("π―");
} else {
console.log("π
π½ββοΈ");
}
0
19.286