Here are the methods covered so far.
In this article, I will cover following methods.
|LINQ Methods||Go to example|
The sample collections used in this part are shown as below.
filter returns an array of size 0 if no record is returned.
So I am checking for the size and return
nullOrder if the length is 0.
The callback in Array.prototype.filter also has an access to current index being process.
So the implementation for
skip simply filters out records below the given
skipWhile filters out records that do not match the predicate.
Take is the opposite of
skip so the boolean conditions are reversed.
Please let me know should you find any errors or improvements I can make to the codes.
The full source code and instructions on how to run them are on GitHub.