mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +08:00
Moved array tests to bottom of file
This commit is contained in:
1 parent
a07d5f4576
commit
8474bb3ded
1 file changed
+5
-4
@@ -73,13 +73,14 @@ anOrder.lines.push(someOrderLine);
|
||||
anOrder.lines.push(someOrderLine);
|
||||
anOrder.lines.shift();
|
||||
|
||||
console.log(someOrderLine.subtotal == someOrderLine.getSubtotal()); // true
|
||||
console.log(anOrder.lines.length); // 1
|
||||
|
||||
//Array methods
|
||||
anOrder.lines.remove(someOrderLine);
|
||||
anOrder.lines.removeAll([someOrderLine]);
|
||||
anOrder.lines.removeAll();
|
||||
|
||||
anOrder.lines.destroy(someOrderLine);
|
||||
anOrder.lines.destroyAll([someOrderLine]);
|
||||
anOrder.lines.destroyAll();
|
||||
|
||||
console.log(someOrderLine.subtotal == someOrderLine.getSubtotal()); // true
|
||||
console.log(anOrder.lines.length); // 1
|
||||
anOrder.lines.destroyAll();
|
||||
Reference in new issue
Block a user