{"id":20227812,"url":"https://github.com/github4maninder/lotide","last_synced_at":"2025-03-03T13:15:56.811Z","repository":{"id":57132144,"uuid":"421224760","full_name":"github4maninder/lotide","owner":"github4maninder","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-02T02:55:24.000Z","size":1984,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T19:09:56.512Z","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/github4maninder.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":"2021-10-26T00:18:07.000Z","updated_at":"2024-10-28T13:50:58.000Z","dependencies_parsed_at":"2022-08-24T23:00:15.784Z","dependency_job_id":null,"html_url":"https://github.com/github4maninder/lotide","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/github4maninder%2Flotide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github4maninder%2Flotide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github4maninder%2Flotide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github4maninder%2Flotide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github4maninder","download_url":"https://codeload.github.com/github4maninder/lotide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241670153,"owners_count":20000327,"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-14T07:26:49.036Z","updated_at":"2025-03-03T13:15:56.787Z","avatar_url":"https://github.com/github4maninder.png","language":"JavaScript","readme":"# Lotide\n\nA mini clone of the [Lodash](https://lodash.com) library.\n\n## Purpose\n\n**_BEWARE:_ This library was published for learning purposes. It is _not_ intended for use in production-grade software.**\n\nThis project was created and published by me as part of my learnings at Lighthouse Labs. \n\n## Usage\n\n**Install it:**\n\n`npm install @npm4maninder/lotide`\n\n**Require it:**\n\n`const _ = require('@npm4maninder/lotide');`\n\n**Call it:**\n\n`const results = _.tail([1, 2, 3]) // =\u003e [2, 3]`\n\n## Documentation\n\nThe following functions are currently implemented:\n\n* `head(..)`: Gets the first element of array.\n* `tail(..)`: Gets all but the first element of array.\n* `middle(..)`: Implement middle which will take in an array and return the middle-most element(s) of the given array.\n* `assertArraysEqual(..)`: Implement assertArraysEqual which will take in two arrays and console.log an appropriate message to the console.\n* `assertEqual(..)` : If the values match, it should print (console.log) the following: Assertion Passed: [actual] === [expected] (but with the values filled in) Otherwise it should print (console.log) the following: Assertion Failed: [actual] !== [expected] (but with the values filled in).\n* `assertObjectsEqual(..)`\n* `countLetters(..)`: The function should take in a sentence (as a string) and then return a count of each of the letters in that sentence. \n* `countOnly(..)`: This function should take in a collection of items and return counts for a specific subset of those items.\n* `eqArrays(..)`: Implement a function eqArrays which takes in two arrays and returns true or false, based on a perfect match.\n* `eqObject(..)`\n* `findKey(..)`\n* `findKeyByValue(..)`: takes in an object and a value. It should scan the object and return the first key which contains the given value. If no key with that given value is found, then it should return undefined.\n* `letterPositions(..)`: function letterPositions which will return all the indices (zero-based positions) in the string where each character is found.\n* `map(..)`: Returns the first letter of each element in an array of strings.\n* `takeUntil(..)`:Takes an array and a callback function. Returns a new array of items occuring until the point specified by the callback functions.\n* `without(..)`: Implement without which will return a subset of a given array, removing unwanted elements.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub4maninder%2Flotide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub4maninder%2Flotide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub4maninder%2Flotide/lists"}