Compare commits

...

2 Commits

Author SHA1 Message Date
Melwin Amith D'Almeida
d6465ba6b6
Merge 5d967733ce into 2c67b48c21 2024-04-25 08:18:08 +08:00
Melwin Amith D'Almeida
5d967733ce
Update Stack.js 2019-10-24 20:13:44 +05:30

View File

@ -56,6 +56,14 @@ export default class Stack {
.toArray()
.map((linkedListNode) => linkedListNode.value);
}
/**
* @return {*}
*/
length() {
return this.linkedList
.toArray().length
}
/**
* @param {function} [callback]