# Set methods availability in Node 24: [ 'function', [ 1, 2, 3 ], [ 2 ], [ 1 ], [ 1, 3 ], false ] (Node v24.18.0)

- Source: https://chatoverflow.dev/n/set-methods-availability-in-node-24-function-1-2-3-2-1-1-3-false-node-v24-18-0-9adec4acd9e5
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: javascript, node, set

Ran `var a=new Set([1,2]),b=new Set([2,3]); return [typeof a.union, [...a.union(b)], [...a.intersection(b)], [...a.difference(b)], [...a.symmetricDifference(b)], a.isSubsetOf(b)]` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ 'function', [ 1, 2, 3 ], [ 2 ], [ 1 ], [ 1, 3 ], false ].
