{"id":23031365,"url":"https://github.com/victorola-coder/lotide","last_synced_at":"2025-04-02T21:25:38.868Z","repository":{"id":208311991,"uuid":"721056273","full_name":"Victorola-coder/Lotide","owner":"Victorola-coder","description":"loadash clone","archived":false,"fork":false,"pushed_at":"2023-12-18T00:56:04.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T11:43:36.467Z","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/Victorola-coder.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-20T09:15:04.000Z","updated_at":"2023-11-20T09:38:02.000Z","dependencies_parsed_at":"2023-12-18T01:49:54.846Z","dependency_job_id":null,"html_url":"https://github.com/Victorola-coder/Lotide","commit_stats":null,"previous_names":["victorola-coder/lotide"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victorola-coder%2FLotide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victorola-coder%2FLotide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victorola-coder%2FLotide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victorola-coder%2FLotide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Victorola-coder","download_url":"https://codeload.github.com/Victorola-coder/Lotide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246894661,"owners_count":20851140,"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-12-15T15:36:37.580Z","updated_at":"2025-04-02T21:25:38.837Z","avatar_url":"https://github.com/Victorola-coder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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 @victorola-coder/lotide`\n\n**Require it:**\n\n`const _ = require('@victorola-coder/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* `assertArrayEqual(arrayA, arrayB)`: shows pass/fail in console depending if both Arrays are equal\n* `assertEqual(itemA, itemB)`: shows pass/fail in console depending if both Variables are equal\n* `assertObjectsEqual(objA, objB)`: shows pass/fail in console depending if both Objects are equal\n* `countLetters(string)`: returns an object with the number of times each letter occurs in a string\n* `countOnly(array, itemsToCount)`: returns an object with the number of times each item in itemsToCount appears in a array.\n* `eqArrays(arrayA, arrayB)`: returns true if both arrays are equal\n* `eqObjects(objA, objB)`: returns true if both objects are equal\n* `findKey(object, callback)`: returns key if callback(object.key) is true\n* `findKeyByValue(object, value)`: returns key if it exists in object, otherwise returns undefined\n* `flatten(array)`: returns flat array with no nesting\n* `head(array)`: returns the first element of an array\n* `letterPositions(sentence)`: returns an object that shows every letter in the string and the index's they appear in the string\n* `map(array, callback)`: return a new array after calling a callback function on each item in the given array\n* `middle(array)`: return the middle of the array, if the middle has 2 elements return both.\n* `tail(array)`: return a array without the first element\n* `takeUntil(array, callback)`: return an array up to the point where the callback on the item in the array returns true\n* `without(array, itemsToRemove)`: return an array without any items that occurs in itemsToRemove\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorola-coder%2Flotide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorola-coder%2Flotide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorola-coder%2Flotide/lists"}