{"id":19842799,"url":"https://github.com/kerelape/monadic-objects","last_synced_at":"2026-06-22T08:32:08.496Z","repository":{"id":41831989,"uuid":"483232668","full_name":"kerelape/monadic-objects","owner":"kerelape","description":"Collection of functions to modify objects","archived":false,"fork":false,"pushed_at":"2022-07-01T14:55:32.000Z","size":47,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-03T07:52:43.249Z","etag":null,"topics":["functional-programming","javascript","javascript-library","js","objects"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kerelape.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-19T12:15:14.000Z","updated_at":"2022-04-27T14:59:13.000Z","dependencies_parsed_at":"2022-08-11T18:50:37.178Z","dependency_job_id":null,"html_url":"https://github.com/kerelape/monadic-objects","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kerelape/monadic-objects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerelape%2Fmonadic-objects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerelape%2Fmonadic-objects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerelape%2Fmonadic-objects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerelape%2Fmonadic-objects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kerelape","download_url":"https://codeload.github.com/kerelape/monadic-objects/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kerelape%2Fmonadic-objects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34641636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["functional-programming","javascript","javascript-library","js","objects"],"created_at":"2024-11-12T12:35:43.955Z","updated_at":"2026-06-22T08:32:08.479Z","avatar_url":"https://github.com/kerelape.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monadic Objects\n\n\u003e Collection of functions to modify objects\n\n[![Test](https://github.com/kerelape/monadic-objects/actions/workflows/test.yml/badge.svg?branch=main\u0026event=push)](https://github.com/kerelape/monadic-objects/actions/workflows/test.yml)\n\n## What is this libary about?\n\nThis library lets you operate javascript objects in a more convenient way than `Object.keys(...)`. \nFor example you can do `({ a: 1, b: 2, c: 3 }).map((key, value) =\u003e [key, value * value])` to get `{ a: 2, b: 4, c: 9 }`\n\n## How to use it\n\n### Installation\n\n#### Npm\n\n`npm i monadic-objects`\n\n#### Yarn\n\n`yarn add monadic-objects`\n\n### Usage\n\n#### `forEach`\n\n##### Signature\n\n```javascript\nobject.forEach(block: (key: string, value: any) =\u003e void) =\u003e object\n```\n\n##### Returns\n\n\u003e Shallow copy of the original object\n\n#### `map`\n\n##### Signature\n\n```javascript\nobject.map(block: (key: string, value: any) =\u003e [key: string, value: any]) =\u003e object\n```\n\n##### Returns\n\n\u003e Modified copy of the original object\n\n#### `filter`\n\n##### Signature\n\n```javascript\nobject.filter(block: (key: string, value: any) =\u003e boolean) =\u003e object\n```\n\n##### Returns\n\n\u003e Filtered copy of the original object\n\n#### `every`\n\n##### Signature\n\n```javascript\nobject.every(block: (key: string, value: any) =\u003e boolean) =\u003e boolean\n```\n\n##### Returns\n\n\u003e `true` if every block call returned `true`, otherwise - `false`\n\n#### `some`\n\n##### Signature\n\n```javascript\nobject.some(block: (key: string, value: any) =\u003e boolean) =\u003e boolean\n```\n\n##### Returns\n\n\u003e `true` if at least one block call returned `true`, otherwise - `false`\n\n## Contribution\n\nTo contribute to this project - fork it, make a change (on a new branch, otherwise I reject), and open a pull request to develop.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkerelape%2Fmonadic-objects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkerelape%2Fmonadic-objects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkerelape%2Fmonadic-objects/lists"}