Glossary: Coding Interviews in JavaScript
Slice copy
Also written: [...path], spread copy, copy of the array
A new array with the same items, made with `[...items]` or `items.slice()`. Use it so `sort` doesn't change the caller's array, and so backtracking saves a snapshot instead of the one array that keeps changing.