mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-23 13:09:27 +08:00
Add node modules and compiled JavaScript from main (#172)
Co-authored-by: Oliver King <oking3@uncc.edu>
This commit is contained in:
committed by
GitHub
parent
ee3c5aed75
commit
08d466b6ab
+8
@@ -0,0 +1,8 @@
|
||||
import { slice } from './_setup.js';
|
||||
|
||||
// Returns everything but the last entry of the array. Especially useful on
|
||||
// the arguments object. Passing **n** will return all the values in
|
||||
// the array, excluding the last N.
|
||||
export default function initial(array, n, guard) {
|
||||
return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
|
||||
}
|
||||
Reference in New Issue
Block a user