diff options
| author | Priyansh <[email protected]> | 2022-01-22 20:32:53 -0500 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2022-01-22 20:32:53 -0500 |
| commit | f9fa09b5311d77e22ccadee716353c94fa293eb3 (patch) | |
| tree | b8652c963d468dcdfccd16a4f31a88073db4d516 /README.md | |
| parent | 703b4176d84b3f3deadf9c0b86649c29c8c333f9 (diff) | |
| download | izuku.js-f9fa09b5311d77e22ccadee716353c94fa293eb3.tar.xz izuku.js-f9fa09b5311d77e22ccadee716353c94fa293eb3.zip | |
docs: rangeIndex() method
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -284,6 +284,17 @@ Data Types: string(26), number(8), object(1), undefined(1) Memory Usage: 550 bytes ``` +### `rangeIndex()`  + +The `rangeIndex()` method is used to get the element at a particular index if the complete data was flattened. It takes an index as an argument. Index is zero-based. + +`rangeIndex()` does not return a new frame and therefore it is not chainable. It returns the element at the index and therefore a `console.log` is required to print the element. + +```js +// get the element at index 2 +console.log(frame.rangeIndex(2)); +``` + ## Helper Methods Helper methods are methods that are used to help you with some common tasks. They are not chainable. They are not required to use the frame methods. |
