Numbers with same digit set in base 10 and base 16: Difference between revisions

m
(→‎{{header|JavaScript}}: Added a JavaScript version.)
Line 705:
h = n.toString(16);
 
return eqSet(new Set([...d]))(
new Set([...h])
) ? [
`(${d}, ${h})`
Line 726:
const eqSet = a =>
// True if the two sets have
// the same setsize ofand members.
b => a.size === b.size && (
Array.from(a).every(x => b.has(x))
9,659

edits