Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

comparare due array di numeri javascript

function arraysContainSame(a, b) { a = Array.isArray(a) ? a : []; b = Array.isArray(b) ? b : []; return a.length === b.length && a.every(el => b.includes(el)); }
Source by www.yocker.com #
 
PREVIOUS NEXT
Tagged: #comparare #due #array #di #numeri #javascript
ADD COMMENT
Topic
Name
6+5 =