{"id":16095850,"url":"https://github.com/joakin/immutable-fns","last_synced_at":"2025-03-18T07:30:22.033Z","repository":{"id":19437755,"uuid":"22681479","full_name":"joakin/immutable-fns","owner":"joakin","description":"facebook/immutable-js wrapper providing static functions to work with functional programming","archived":false,"fork":false,"pushed_at":"2014-08-06T19:45:32.000Z","size":136,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-16T11:32:40.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/joakin.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":"2014-08-06T12:19:33.000Z","updated_at":"2023-11-18T03:10:12.000Z","dependencies_parsed_at":"2022-08-24T07:20:47.435Z","dependency_job_id":null,"html_url":"https://github.com/joakin/immutable-fns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fimmutable-fns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fimmutable-fns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fimmutable-fns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fimmutable-fns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joakin","download_url":"https://codeload.github.com/joakin/immutable-fns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221477206,"owners_count":16829000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-09T17:09:13.926Z","updated_at":"2024-10-27T16:59:41.229Z","avatar_url":"https://github.com/joakin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nImmutable functions\n===================\n\nThis library provides a wrapper around the package\n[immutable](https://github.com/facebook/immutable-js) exposing the same API but\nadding static functions to the data types that are exactly the same as the ones\nin **immutable** but accepting the object to act on as the last argument.\n\nUsage\n-----\n\nThis package has immutable as its peer dependency, so you have to install it\ntoo.\n\n```\nnpm install --save immutable immutable-fns\n```\n\nDocs\n----\n\nCheck out [immutable's API](https://github.com/facebook/immutable-js), this\nlibrary provides exactly the same but the object methods have been converted\ninto static methods on the class taking the object to act on as the last\nargument.\n\nFor example:\n\n```javascript\n// On the immutable-js api\nImmutable.Map({}).get('key')\n// Added on this library\nImmutable.Map.get('key', map)\n```\n\nExamples\n--------\n\n```javascript\nvar Immutable = require('immutable-fns');\nvar get = Immutable.Map.get;\n\n// Create an immutable data structure\nvar m = Immutable.Map({a: 1});\n\n// We can use the traditional api (obj.method(param)) or use the functional API\n// (fn(...params, obj))\nassert.equal(m.get('a'), get('a', m));\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fimmutable-fns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoakin%2Fimmutable-fns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fimmutable-fns/lists"}