2.0.4 • Published 5 years ago

extroonie v2.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Extroonie

"Let's just treat object like an array lol" - Extroonie#0001

Requiring Functions

const extroonie = require("extroonie");

Object.prototype.push

This will add the discriminator into the new object.

Usage
const obj = {username: "Extroonie"};
const newObj = obj.push({discriminator: "0001"});

// {username: "Extroonie", discriminator: "0001"}
console.log(newObj)

Object.prototype.remove

This will just simply remove a key and value from an object based on the specified key.

Usage
const obj = {username: "Extroonie", discriminator: "0001"};

// {username: "Extroonie"}
obj.remove("tag")

Object.prototype.forEach

Loop through the object which return an object, example below.

Usage
const obj = {username: "Extroonie", discriminator: "0001"};

obj.forEach(object => {
  // {key: "username", value: "Extroonie"}
})
2.0.3

5 years ago

2.0.4

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago