moving all labs to old dir

This commit is contained in:
2026-02-26 21:55:48 +10:00
parent 76555d27a4
commit 4f1c66e838
132 changed files with 0 additions and 0 deletions

32
labs/lab1/temp.js Normal file
View File

@@ -0,0 +1,32 @@
// const arr = [1, 2, 3, 4, 5];
// const replaced = arr
// replaced.splice(2,1,100)
// const removed = [...replaced];
// removed.splice(3,1);
// const updated = [...removed];
// updated.splice(3,0,200);
// console.log(updated);
const arr = [2, 2, 4, 1, 6, 12]
// const ret = arr.map((val, i, array) => {
// return array.slice(Math.max(0, i - 1), Math.min(array.length - 1, i + 2)) /
// (Math.max(0, i - 1)-Math.min(array.length - 1, i + 1))
// })
// console.log(ret)
// let min = arr.reduce((acc,x)=>x<acc?x:acc);
// console.log(min)
function groupArr(func,...args){
return args.reduce(func)
}
const users =