{"id":21626473,"url":"https://github.com/qodesmith/slimarray","last_synced_at":"2025-03-18T20:23:40.802Z","repository":{"id":31443727,"uuid":"35007427","full_name":"qodesmith/slimArray","owner":"qodesmith","description":"Filters redundant elements from arrays and returns them in an optional order.","archived":false,"fork":false,"pushed_at":"2015-11-04T03:15:32.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T22:42:49.800Z","etag":null,"topics":[],"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/qodesmith.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":"2015-05-04T01:18:00.000Z","updated_at":"2015-11-04T03:09:32.000Z","dependencies_parsed_at":"2022-09-07T14:02:06.976Z","dependency_job_id":null,"html_url":"https://github.com/qodesmith/slimArray","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/qodesmith%2FslimArray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodesmith%2FslimArray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodesmith%2FslimArray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodesmith%2FslimArray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qodesmith","download_url":"https://codeload.github.com/qodesmith/slimArray/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244298555,"owners_count":20430454,"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-11-25T01:13:27.970Z","updated_at":"2025-03-18T20:23:40.773Z","avatar_url":"https://github.com/qodesmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slimArray\nFilters redundant / duplicate elements from arrays and returns them in an optional order.\n\n####Usage:####\n\n`slimArray([array], 'order');`\n[array] is an array of numbers or strings.\n'order' is optional and can be one of two options, both of which are strings:\n  1. *asc:* - sorts the array in ascending order\n  2. *desc:* - sorts the array in descending order\n\n\n####Examples:####\n```\nnumbers = [3, 1, 10, 3, 10, 2, 100];\nslimArray(numbers) // [3, 1, 10, 2, 100]\nslimArray(numbers, 'asc') // [1, 2, 3, 10, 100]\nslimArray(numbers, 'desc') // [100, 10, 3, 2, 1]\n\nnames = ['Larry', 'Moe', 'Curly', 'Moe', 'Curly'];\nslimArray(names) // [\"Larry\", \"Moe\", \"Curly\"]\nslimArray(names, 'asc') // [\"Curly\", \"Larry\", \"Moe\"]\nslimArray(names, 'desc') // [\"Moe\", \"Larry\", \"Curly\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqodesmith%2Fslimarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqodesmith%2Fslimarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqodesmith%2Fslimarray/lists"}