🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

jsonasarray

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonasarray - npm Package Compare versions

Comparing version
0.0.2
to
0.0.3
+1
-1
package.json
{
"name": "jsonasarray",
"version": "0.0.2",
"version": "0.0.3",
"description": "use Json as Array",

@@ -5,0 +5,0 @@ "main": "index.js",

+52
-22
# jsonasarray
> Using Json as smooth as Array
🍻 Make Json as smooth as Array
## How to use ?
#### 1. install
```sh
npm install jsonasarray
# or
yarn add jsonasarray
```
#### 2. import
```js
import { jsonasarray } from 'jsonasarray';
```
> All APIs will be registered in the Object upon importing jsonasarray.
#### 3. use APIs
```js
jsonasarray.forEach(x, (value, key) => console.log(key, value));
// or
x.forEach((value, key) => console.log(key, value));
```
## APIs
```js
// just for testing

@@ -10,5 +40,5 @@ const x = { z: 0, a: 11, b: 22, c: 33 };

## Innovations
### Innovations
1. count of json
#### 1. count of json

@@ -19,3 +49,3 @@ ```js

2. keys of json
#### 2. keys of json

@@ -26,3 +56,3 @@ ```js

3. values of json
#### 3. values of json

@@ -33,5 +63,5 @@ ```js

## Iterator
### Iterator
1. forEach
#### 1. forEach

@@ -45,3 +75,3 @@ ```js

2. map
#### 2. map

@@ -55,3 +85,3 @@ ```js

3. filter
#### 3. filter

@@ -65,3 +95,3 @@ ```js

4. some
#### 4. some

@@ -75,3 +105,3 @@ ```js

5. every
#### 5. every

@@ -85,5 +115,5 @@ ```js

## Operate
### Operate
1. includes
#### 1. includes

@@ -94,3 +124,3 @@ ```js

2. indexOf
#### 2. indexOf

@@ -101,3 +131,3 @@ ```js

3. unshift
#### 3. unshift

@@ -109,3 +139,3 @@ ```js

4. push
#### 4. push

@@ -117,3 +147,3 @@ ```js

5. shift
#### 5. shift

@@ -125,3 +155,3 @@ ```js

6. pop
#### 6. pop

@@ -133,3 +163,3 @@ ```js

7. slice
#### 7. slice

@@ -141,3 +171,3 @@ ```js

8. splice
#### 8. splice

@@ -149,3 +179,3 @@ ```js

9. join
#### 9. join

@@ -157,3 +187,3 @@ ```js

10. concat
#### 10. concat

@@ -160,0 +190,0 @@ ```js