
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
parse-my-object
Advanced tools
This library has following methods to parse/manipulate your data
This method remove keys from object or array of object without changing the original one. 1st argument: object or array of object from which you want to remove keys 2nd argument: array of keys you want to remove from your object example:
const obj = [{id:1,name:"Mike"},{id:2,name:"John"},{id:3,name:"Khan"}]
removeFromObject(obj, ['id']) //key id will be deleted
This method retain keys that you specify from object or array of object and deletes rest of them without changing the original one.
1st argument: object or array of object from which you want to remove keys
2nd argument: array of keys you want to remove from your object
example:
retainFromObject(obj, ['id']) //key other than id will be deleted
This method convert specified keys to string
example:
makeStringify(obj, ['id']) // object key with name id will be converted to string
This methods removes duplicate value of a specified key from an array of object(json) example:
const jsonObj = [
{id:1,name:"Shawn"},
{id:2,name:"Mike"},
{id:1,name:"John"}
]
const result = getUniqueArray(jsonObj,"id")<br>
// result = [id:1,name:"Shawn"},{id:2,name:"Mike"}]
Shuffle the array example: const arr = objectFilter.shuffleArray([1, 2, 3, 5, 6]) //result->2,3,6,5,1,4
Compare specified date with current data and returns true or false 1st argument: your specified date 2nd argument: list of options
compare two specified date
1st argument: 1st specified date 2nd argument: 2nd specified date 3rd argument: list of options
inputs date and returns day
inputs month and returns month
You can fork my project using:
git clone https://Shaheryar0129@bitbucket.org/Shaheryar0129/parse-my-object.git
FAQs
_This library has following methods to parse/manipulate your data_
We found that parse-my-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.