mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Moved array tests to bottom of file
This commit is contained in:
@@ -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