{"_id":"@amchampoux/lotide","_rev":"1-35c448c1f08b8f68a002d0dbe4ff8101","name":"@amchampoux/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@amchampoux/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amchampoux/lotide.git"},"author":{"name":"amchampoux"},"license":"ISC","bugs":{"url":"https://github.com/amchampoux/lotide/issues"},"homepage":"https://github.com/amchampoux/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"8828b9f60c0f35a50b5d56ffe4b5dace65d3e554","_id":"@amchampoux/lotide@1.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Xq5fDK569/AWVwY0luLRjhc4onV2dxN5Le2M5asjblkKM3qC5hKiHVWjwnqRCTTd+xuhJRvlmxRsEozYLzE9Pg==","shasum":"842eddca3bf437de97352818c5b90c5d6af9a370","tarball":"https://registry.npmjs.org/@amchampoux/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":14299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUFGqtig9HKWFhatXD46EojRbNflS9VHkEerT7ideP5AiEAhlVyZ+u8hAemfd8RU5LndHj2NNLA9eOKz74kcwa6Nms="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbHEPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr11Q/+KVwDYK2u/CpzWcKxyfg/J8tM6hTo0E16JYlYAPw0Y7xbEoCV\r\nE2hajQePFq3HXdVTYrfRNDXzOt095ffXsQIfuh9RlqDzdMQLV83kyjUZKoob\r\nR3p2kinrownrjL/reSRBzaodw3yrBBNuAMp+0SUDxrz1XJjmLcHDI836jHkn\r\n1AZD3bKDOLfZh1kviBCzf+KGtCdiNFKxILUv0ktkNUH5sZMQW+OlCB71HD/g\r\nw0M3FKdCUErMOmWW2FxEM5zoKRoU+QyY23t5vUQCc9dCh9o1WLlbrzvDuwRy\r\nsIupUglc+khKzH+dSTU9i7hdsSP9SfF36VsSDj66dDUTPFi7+U/icPaHio02\r\nw4ytv4+eoOcTG1e0oiDu1KjD4L6ajj8NwowelcA+WPZkUb4nab1zpNxvGnlP\r\ndOBKen671/tu8aYxO5ECHhTLgyTW5fsg8G314xc7v8leG+yPI3xYvDhUjsPN\r\nRtwWjrVsgDYtUXU4kqovE85jydYU21lsVAcHoK9sJr3gd/DIpqlAEbTtX3XM\r\n5wZ5k+VvuT9g2lvn4fNg+vt/V1xxJHtaVr1/pGyuTyDD0MTi3G3CjngUGzB3\r\ngT4nPVhkgWiQdDMJKGIgdIzIa4tRPw0WBq8GCGoMHnAxX0oLaVBUEo1uEMMJ\r\nDhqgw+hHxMqxY819EM6x29E2vwwtL7uZ9Zs=\r\n=rP5g\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"amchampoux","email":"champouxam@gmail.com"},"maintainers":[{"name":"amchampoux","email":"champouxam@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1668051215288_0.8863901488338599"},"_hasShrinkwrap":false},"1.0.1":{"name":"@amchampoux/lotide","version":"1.0.1","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amchampoux/lotide.git"},"author":{"name":"amchampoux"},"license":"ISC","bugs":{"url":"https://github.com/amchampoux/lotide/issues"},"homepage":"https://github.com/amchampoux/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"1351fb56b49fffc47fd0c505fecf204f79d32263","_id":"@amchampoux/lotide@1.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-yePEodJDOOP4l5MbQ6gBnZjgk4F1XFM//UOFEfGa6MSYOVT+1RhWJT+yUiKyxFlKdGN8CT795YlDn7vVb1z+kw==","shasum":"505e9bf5d4994f87b282d317526eda9067834198","tarball":"https://registry.npmjs.org/@amchampoux/lotide/-/lotide-1.0.1.tgz","fileCount":33,"unpackedSize":15928,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA5QchcOWXDgtUx/8MI665+449iUv+3cnOG8XCLNK9IfAiBBfnMHNwHzxtStSdbjedowr0wbViH0iuCcdVlpbRcDFw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbIerACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpU8RAAjtnaEyFsKh10oPETvJQGBH3CpaCNnZcJbTLyz9rt9nQC3jFt\r\n0RpxVBxds6O+GytSBKOOAJQZKFiNyKiksSTqYzRjJd2uYgIbKOYHeA0aFbVi\r\nvt+PXJq8PTPlxReHzpLjvZ0Bi5MSGJ8meYfXTmTC01Z0qstcX91e+ZjjA0sC\r\n1XHeY7EyY574V1Ym1Xvw1t44qcl/uq0xYEdM7ouJuP5BxAtSpgmbC2LRSu0t\r\nGzbVlSI5JOtzePGzjtwxRA/Q/7HRDLuD/Nso/+grad+NBVqJP3E6/1wcDWLw\r\nlFvC+R4Cka0TwB48ddLRBi5OxPPvutZ9DotZ4K/mES16uNjnyRVI3oV0qhHR\r\nBS3SPwwQXeNhehpiKFy/6UkGQ5AbyStbGg5MYyKKi//Iqy5TZG4pRxPd/Oxg\r\nvz/Z4NcStzyeEILcYy2PzBN+spT1zvo9sb+rIZXW4NRv4IridiTx7Itr0WgJ\r\nQpIlnkjII9itxbz4XhImb7LFnU9kUc2weIMs2XB926KAt4xB2J4udfNbFyKc\r\nvydZQh0l/4Varf3eWZnuacM/GrGuC6vTLSr2Ao//Cbt1boSDU3BpNlhcHz/s\r\n/loNHuDa8FOIoVdbGPYg3LyxhZxk+WWUW/fpeQsyCF2bZR3B9xj009HYPB8F\r\nILuKiyflK7pH7D3iSy75KTmWY1wXixYakw0=\r\n=s2ai\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"amchampoux","email":"champouxam@gmail.com"},"maintainers":[{"name":"amchampoux","email":"champouxam@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1668057002568_0.7344099441534764"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-10T03:33:35.230Z","1.0.0":"2022-11-10T03:33:35.497Z","modified":"2022-11-10T05:10:03.037Z","1.0.1":"2022-11-10T05:10:02.980Z"},"maintainers":[{"name":"amchampoux","email":"champouxam@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/amchampoux/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amchampoux/lotide.git"},"author":{"name":"amchampoux"},"bugs":{"url":"https://github.com/amchampoux/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 @amchampoux/lotide`\n\n**Require it:**\n\n`const _ = require('@amchampoux/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(...)`: takes in an array and returns the first element in the array.\n* `tail(...)`: takes in an array and returns everything except the first element of the array.\n* `middle(...)`: takes in an array and returns middle most element of the array.ion\n* `countLetters(...)`: takes in a sentence and returns a count of each of the letters in the sentence.\n* `countOnly(...)`: takes in a collection of items and returns a specific subset of those items.\n* `findKey(...)`: takes in an object and callback and returns the first key that meets the criteria specified in callback.\n* `findKeyByValue(...)`: takes in an object and a value and returns the first key that corresponds to that value.\n* `flatten(...)`: takes in an array that contains elements including nested array of elements and returns a flattened version of the array.\n* `letterPositions(...)`: takes in a string and returns all indices of letter positions in the string.\n* `map(...)`: takes in an array and a callback and returns a new array based on the results of the callback on each item in the array.\n* `takeUntil(...)`: takes in an array and callback and returns a slice of the array based on the criteria specified in the callback.\n* `without(...)`: takes in a source array and an itemsToRemove arrays and returns only the items from the source array that are not in the itemsToRemove array.\n* `assertEqual(...)`: takes in 2 values and returns true if they are equal and false otherwise.\n* `assertArraysEqual(...)`: takes in 2 arrays and returns true if they are equal and false otherwise.\n* `assertObjectsEqual(...)`: takes in 2 objects and returns true if they are equal and false otherwise.\n* `eqArrays(...)`: takes in 2 arrays and returns true if the arrays are equal and false otherwise.\n* `eqObjects(...)`: takes in 2 objects and return true if they are equal and false otherwise.\n\n\n","readmeFilename":"README.md"}