{"_id":"@3bdo0319/lotide","_rev":"1-ea538da8ac6b124e142d7373b4c9dad5","name":"@3bdo0319/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@3bdo0319/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"assertEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/hass0319/lotide.git","email":"abdrabou1994@gmail.com"},"author":{"name":"3bdo0319"},"license":"ISC","bugs":{"url":"https://github.com/hass0319/lotide/issues"},"homepage":"https://github.com/hass0319/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.0"},"gitHead":"50fb72b74ab92743f8a4aa022cca0e8e244cd9fc","_id":"@3bdo0319/lotide@1.0.0","_nodeVersion":"12.22.8","_npmVersion":"8.5.2","dist":{"integrity":"sha512-lf/37YUp1+pgEZ+M8Klb1F/ceL+QW+dzaWQI2uO9b6QUNTZC0CQDy5wZj5/9DmTmAt4pnquaKZ2I+1zlcbLF1Q==","shasum":"f5bcd052751626c1a47e55034c96120c5570f794","tarball":"https://registry.npmjs.org/@3bdo0319/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":17530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiG7rnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofOQ/+NPfMQnec3VwMhGKAThFZCEkAr/uYPfR1AaapnQKKgKjq75ph\r\nIWJXTt6VHxjwluX05wXCBXNhCv33IFUkpKcmi7idKcQy9RDknJ3m69FNnnYE\r\nO6V8GxM53ZSds9KfW5YfH2z+zH7SJAY3HqalSkgherjB1F+vMESg6e6TD5wQ\r\ngyihd/7g47aAJSOdjzkmO2JwvtxHHaZ+MuV5POcI1naT2+5I3ZVGGrwwi+Md\r\nXE8ZlkWTUmqFlEDzGOOvDJ/Xrd8e/kBlBH6PqHqfNtoOZy1h/Vd/afFh4173\r\n+bCn5P2GD0wJ9c5Z+fE33qgOsGbgQmd9CO8OXwuaRkBzk3O035ta8IqeUTbw\r\nNdI2eo/CXzo9dOnguA9AidOhbm2hrpFOuOoQv2FgW7TYuprQVPrZPB/bnTRw\r\n0OVWp8fF7Kbaoy8IbP7klXaMsyXXXmhL+yFmAXm8SUClmWoecMv8cI+fG/Ot\r\n9Jl0n0T15rB4NNuXpUf3WcIt52eigAuO8XrT3SxDs50UJfqVN678JWORYsjM\r\nMRQLQwsAW0RtURi1DhL31i9vuUAh8Ms8YFf1g4WYsUNNFrfebEVIJ4lZsRWp\r\nc8PAXQwHrHiDgNVTj4CHGbXeHIm79ek/m2FJpeu55/Xu/Qr78st/kno352jw\r\nuVhVEXXa1m0VjjlJfWPGUZ1Pwk3vKGHqt+M=\r\n=rwAe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr6vo4RdwImIBtoMoFzmbkjArW8IdHaDgDydPJUSPQMQIgVhEtW/AGG/wFzqqq2OH/GpXZbAZ+tvRCMT0vehyonrc="}]},"_npmUser":{"name":"3bdo0319","email":"abdrabou1994@gmail.com"},"maintainers":[{"name":"3bdo0319","email":"abdrabou1994@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1645984487820_0.780611723578613"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-27T17:54:47.764Z","1.0.0":"2022-02-27T17:54:47.948Z","modified":"2022-04-04T10:44:29.560Z"},"maintainers":[{"name":"3bdo0319","email":"abdrabou1994@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/hass0319/lotide#readme","repository":{"type":"git","url":"git+https://github.com/hass0319/lotide.git","email":"abdrabou1994@gmail.com"},"author":{"name":"3bdo0319"},"bugs":{"url":"https://github.com/hass0319/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 @hass0319/lotide`\n\n**Require it:**\n\n`const _ = require('@hass0319/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* `assertArraysEqual()`:  Takes in two arrays, checks if Equal, and logs the appropriate message.\n\n* `EqArrays()`: Takes in two arrays and returns a true or false value.\n\n* `Head()`: Retrieves the first element of an array.\n\n* `tail(arr)`: Retrieves all other elements except the head.\n\n* `middle()`: Takes in an array and returns the middle-most elements\n\n* `assertObjectEqual ()`: Takes in two objects and returns failed or passed assertions, based on a perfect match.\n\n* `countOnly()`: Takes in an object and return counts for a specific subset of the object\n\n* `countletters()`: Takes in a sentence (as a string) and then return a count of each of the letters in that sentence.\n\n* `eqobjects()`: take in two objects and returns true or false, based on a perfect match.\n\n* `findKey()`: Takes in an object and a callback. It will traverse the object and return the first key for which the callback returns a truthy value. If no key is found, then it will return undefined.\n\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 not , returns undefined.\n\n* `letterPositions()`: returns all the indicies in the string where each character is found.\n\n* `Map()`: Takes in an array and a callback and returns a new array based on the results of the callback function.\n\n* `reverseString()`: takes in a string, and prints it in reverse \n\n* `takeUntil()`: Takes in an Array and a Callback, returns a slice of the array taken from the beginning until the callback function returns a truthy value.\n\n* `without()`: Takes in an array and itemsToRemove returning a subset of a given array, removing unwanted elements.\n<!-- * `()`: description -->\n\n### version \"1.0.0\" \n\n### description\n\n### author\n* hass0319\n\n\n* `head(arr)`:  Retrieves the first element of an array.\n\n* `tail(arr)`: Retrieves all other elements except the head.\n\n* `middle(array)`: Takes in an array and returns the middle-most elements.\n\n* `flatten(array)`: Takes in an array of arrays and returns a single array.\n\n","readmeFilename":"README.md"}