{"_id":"@alricf/lotide","name":"@alricf/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alricf/lotide","version":"1.0.0","description":"A mini clone of the Lodash library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alricf/lotide.git"},"author":{"name":"Alric Charles Fernandes"},"license":"ISC","bugs":{"url":"https://github.com/alricf/lotide/issues"},"homepage":"https://github.com/alricf/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"gitHead":"4e7c99ae6579aad55be9b59c396465c709c70234","_id":"@alricf/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-h+2U+kDQClN/Cs37lN5PpS7DZbbPMudSiYpVMolRquU6q0bf/Cmtv+jjp6Lk/nFSGFfFoOCO1LW0AbO892h/GA==","shasum":"743582d1b67e59033572bf419510a36853f7e177","tarball":"https://registry.npmjs.org/@alricf/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":22758,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhtewqykTNjoa4093LPwPQiOxV+Coc2q7Q9YN3wRLIPQIhAJSF2WBR+y6FPF89dcxaBFFobBhqMuNZ7eqe7DVB6S5n"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSbABACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCtA//d0QfyB24vtwdiVpVWRZRNonVZsDX7YUnS6f52xsOIioLWnRh\r\nY0gi42LgaKGgotZ6FZz9ox18/CFNlJuaonbAkEriJa8bs2jd8r6DamBjs2Pa\r\nQnK5dqJF6B26yCpOmpXCeP5hEEr8RDfmVyCEhCjKgWNMX9rtNyOlhgA9+R0M\r\nHpsbSC+4ZIBy3awISoinpSAqHA2muUuVf5I/ftB0ROsboZpjvKeWmdT6fOQX\r\nJPk7V9192O15ds405GtT5wJ1oGx8wzZyELSXb3qaJk5LPRlIOxezw3i5PO0f\r\nw04Bh/fKDyCBvq7mqBuUeBneO50Q6yBfHeYf/qUWgVtO2zYfpVL0xSAMzLez\r\nAotJ3bpTrFR68xihOKEsNojnKea3WT+8D8tIVhgRXvjJinT4kabK0iHgQ8+E\r\nIWYK8Dli/6utIwkHz8vScxYTpXpEV1rTq/ZAUOyvG3wDPI95demfj6ETs2Pz\r\nktvRpwlmlXqKQNlSYgSlce11RSINDcuTjYqAJuAUiweVZ8SsfvFQOSKfAJaV\r\nvIjfoN6lt7cTub58Mo6aNLzbSNDbKsq+hmO9WVmMgahLcfDzjOoZlcDPMx9b\r\nISKag53v6lxBiP2cll+TIZ92gw3Ll/Ya/Hhv4uFuZmWqVZ0VyDwfsbpkWbOn\r\nRjFAGsWFwN1h9MOLOib5Kh9r6e54X70hI48=\r\n=QAB6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alricf","email":"alricfernandes11@gmail.com"},"maintainers":[{"name":"alricf","email":"alricfernandes11@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1665773569286_0.06860253673991257"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-14T18:52:49.242Z","1.0.0":"2022-10-14T18:52:49.497Z","modified":"2022-10-14T18:52:49.627Z"},"maintainers":[{"name":"alricf","email":"alricfernandes11@gmail.com"}],"description":"A mini clone of the Lodash library","homepage":"https://github.com/alricf/lotide#readme","repository":{"type":"git","url":"git+https://github.com/alricf/lotide.git"},"author":{"name":"Alric Charles Fernandes"},"bugs":{"url":"https://github.com/alricf/lotide/issues"},"license":"ISC","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 @alricf/lotide`\n\n**Require it:**\n\n`const _ = require('@alricf/lotide');`\n\n**Call it:**\n\n`const results = _.tail([1, 2, 3]) // => [2, 3]`\n\n## Documentation\n\nThe following functions are currently implemented:\n\n* `head`: The function takes in an array and returns the first element in the array.\n* `tail`: The function takes in an array and returns all elements except the first element in the array.\n* `middle`: The function takes in an array and returns the middle element of the array.\n* `assertArraysEqual`: The function takes in 2 arrays and returns true if they are equal and false if they are not equal.\n* `assertEqual`: The function takes in 2 values and returns true if they are equal and false if they are not equal.\n* `assertObjectsEqual`: The function takes in 2 objects and returns true if they are equal and false if they are not equal.\n* `countLetters`: The function takes in a sentence and returns the count of the letters in the sentence.\n* `countOnly`: The function takes in a collection of items and returns the specific subset of those items.\n* `eqArrays`: The function takes in 2 arrays and returns true if they are equal and false if they are not equal.\n* `eqObjects`: The function takes in 2 objects and returns true if they are equal and false if they are not equal.\n* `findKey`: The function takes in an object and a callback and returns the first key that meets the criteria specified by the callback.\n* `findKeyByValue`: The function takes in an object and a value and returns the first key that corresponds to that value.\n* `flatten`: The function takes in an array that includes nested arrays and returns the flattened version of the array.\n* `letterPositions`: The function takes in a string and returns all the indices of the letter positions in the string.\n* `map`: The function takes in an array and a callback function and returns the result of the callback function on each item in the array.\n* `takeUntil`: The function takes in an array and a callback function and returns a slice of the array depending on the criteria specified by the callback function.\n* `without`: The function takes in a source array and an array of elements to be removed. It returns the source array without the elements provided in the array of elements to be removed.","readmeFilename":"README.md"}