Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-array

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-array - npm Package Compare versions

Comparing version 0.1.6 to 3.0.0

2

package.json

@@ -8,3 +8,3 @@ {

"description": "Array class is a global object that is used in the construction of arrays; which are high-level, list-like objects.",
"version": "0.1.6",
"version": "3.0.0",
"peerDependencies": {

@@ -11,0 +11,0 @@ "@angular/common": "^16.1.8",

@@ -1,3 +0,2 @@

[![Visit beforepost.com for awesome color palettes & extract colors and text from any source](https://github.com/manoj10101996/resources/blob/main/npm-pack-beforepost.png?raw=true)](https://www.beforepost.com/)
<img width="100px" src="https://cdn-icons-png.flaticon.com/512/838/838483.png"/>
<img width="256px" src="https://icon.beforepost.com/VYJ57IDB-D5QBG9K9-CXN7I5MX.svg"/>

@@ -11,11 +10,3 @@ # Welcome to ngx-array!

Features: **Handled exceptions** which generally occurs while developing a array based functionalities
## Preview demo
This preview was generated with [CODESANDBOX](https://codesandbox.io/s/ngx-array-wdpom)
## CDN
CDN Link for ngx-array- https://www.jsdelivr.com/package/npm/ngx-array
## Import

@@ -25,10 +16,8 @@

- [x] > import { NgxArrayModule} from "ngx-array";
> import { NgxArrayModule} from "ngx-array";
Then import the module as follow on imports array
>
> NgxArrayModule
- [x] NgxArrayModule
## Using

@@ -48,9 +37,9 @@

- [x] `_min(arr: Array<any>);` - Returns the minimum value in the array.
- `_min(arr: Array<any>);` - Returns the minimum value in the array.
**arr**: Array of values of any type[].
- [x] `_max(arr: Array<any>);` - Returns the maximum value in the array
- `_max(arr: Array<any>);` - Returns the maximum value in the array
**arr**: Array of values of any type[].
- [x] `_sortNumbers(arr: Array<any>, mode: number = 1);`
- `_sortNumbers(arr: Array<any>, mode: number = 1);`

@@ -61,13 +50,13 @@ - Method sorts the elements of an numbers array in place and returns the sorted array.

- [x] `_sort(arr: Array<any>)` - Method sorts the elements of an array in place and returns the sorted array.
- `_sort(arr: Array<any>)` - Method sorts the elements of an array in place and returns the sorted array.
**arr**: Array of values of any type[].
- [x] `_reverse(arr: Array<any>)` - Returns the reverse ordered array.
- `_reverse(arr: Array<any>)` - Returns the reverse ordered array.
**arr**: Array of values of any type[].
- [x] `_join(arr: Array<any>, joinBy: string = "")` - New string by concatenating all of the elements in an array.
- `_join(arr: Array<any>, joinBy: string = "")` - New string by concatenating all of the elements in an array.
**arr**: Array of values of any type[].
**joinBy**: Concatenate by the string example = (-).
- [x] `_indexOfFrom(arr: Array<any>, item: any, start: number)` - Returns the index of item from given array from starting at particular index.
- `_indexOfFrom(arr: Array<any>, item: any, start: number)` - Returns the index of item from given array from starting at particular index.
**arr**: Array of values of any type[].

@@ -77,7 +66,7 @@ **item**: Searchable item in array of any type

- [x] `_indexOf(arr: Array<any>, item: any)` - Returns the index of item from given array.
- `_indexOf(arr: Array<any>, item: any)` - Returns the index of item from given array.
**arr**: Array of values of any type[].
**item**: Searchable item in array of any type
- [x] `_hasAt(arr: Array<any>, item: any, positionIndex: number)` - Checks whether the array contains the item at particular given index.
- `_hasAt(arr: Array<any>, item: any, positionIndex: number)` - Checks whether the array contains the item at particular given index.
**arr**: Array of values of any type[].

@@ -87,7 +76,7 @@ **item**: Searchable item in array of any type

- [x] `_has(arr: Array<any>, item: any)` - Checks whether the array contains the item.
- `_has(arr: Array<any>, item: any)` - Checks whether the array contains the item.
**arr**: Array of values of any type[].
**item**: Searchable item in array of any type
- [x] `_filterNumbersArray(arr: Array<number>, condition, expected: number)` - Filters integer array for an given condition.
- `_filterNumbersArray(arr: Array<number>, condition, expected: number)` - Filters integer array for an given condition.
**arr**: Array of values of any type[].

@@ -97,3 +86,3 @@ **condition**: Possible conditions ('>' , '<' , '>=', '<=' , '!==')

- [x] `_fill( arr: Array<any>, value: any, from: number, to: number )` - method shallow copies part of an array to another location in the same array and returns it.
- `_fill( arr: Array<any>, value: any, from: number, to: number )` - method shallow copies part of an array to another location in the same array and returns it.
**arr**: Array of values of any type[].

@@ -104,3 +93,3 @@ **value**: value to be filled in array

- [x] `_copyWithin(arr: Array<any>, from: number, to: number)` - Method shallow copies part of an array to another location in the same array and returns it.
- `_copyWithin(arr: Array<any>, from: number, to: number)` - Method shallow copies part of an array to another location in the same array and returns it.
**arr**: Array of values of any type[].

@@ -110,12 +99,12 @@ **from**: Start from this position

* [x] `_concat(...args: Array<any>)` - Method is used to merge two or more arrays.
* `_concat(...args: Array<any>)` - Method is used to merge two or more arrays.
**args**: Multiple Array of values at any length
* [x] `_length(arr: Array<any>)` - Returns the length of the given array
* `_length(arr: Array<any>)` - Returns the length of the given array
**args**: Multiple Array of values at any length
* [x] `_copy(arr: Array<any>)` - Duplicates an array
* `_copy(arr: Array<any>)` - Duplicates an array
**arr**: Array of values of any type[].
* [x] `_slice( arr: Array<any>, start: number, end: number = arr.length - 1 )` - returns a shallow copy of a portion of an array into a new array object selected from start to end.
* `_slice( arr: Array<any>, start: number, end: number = arr.length - 1 )` - returns a shallow copy of a portion of an array into a new array object selected from start to end.
**arr**: Array of values of any type[].

@@ -125,3 +114,3 @@ **start**: Start from this position

* [x] `_splice( arr: Array<any>, start: number, end: number = arr.length - 1 )` - Cut of / Splice of an items at particular valid index
* `_splice( arr: Array<any>, start: number, end: number = arr.length - 1 )` - Cut of / Splice of an items at particular valid index
**arr**: Array of values of any type[].

@@ -131,19 +120,15 @@ **start**: Start from this position

* [x] `_shift(arr: Array<any>)` - Method remove first element at the beginning of an array and returns the new length of the array.
* `_shift(arr: Array<any>)` - Method remove first element at the beginning of an array and returns the new length of the array.
**arr**: Array of values of any type[].
* [x] `_unshift(arr: Array<any>)` - Method adds one or more elements to the beginning of an array and returns the new length of the array.
* `_unshift(arr: Array<any>)` - Method adds one or more elements to the beginning of an array and returns the new length of the array.
**arr**: Array of values of any type[].
* [x] `_pop(arr: Array<any>)` - It will remove the array item at end & return item
* `_pop(arr: Array<any>)` - It will remove the array item at end & return item
**arr**: Array of values of any type[].
* [x] `_push(arr: Array<any>, item: any)` - It will add / push new item to the array at end & return new array
* `_push(arr: Array<any>, item: any)` - It will add / push new item to the array at end & return new array
**arr**: Array of values of any type[].
**item**: item to be pushed of any type
## Angular version
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.0.
## Code integration

@@ -150,0 +135,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc