{"_id":"@ahsolo/lotide","_rev":"3-0de59f00d525d5645dd4836432a1c8ea","name":"@ahsolo/lotide","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@ahsolo/lotide","version":"1.0.0","description":"lotide assignment for Lighthouse Labs coding bootcamp","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/ahSOLO/lotide.git"},"keywords":["lotide"],"author":{"name":"Andrew Han"},"license":"ISC","bugs":{"url":"https://github.com/ahSOLO/lotide/issues"},"homepage":"https://github.com/ahSOLO/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1"},"gitHead":"480c8a1ace9a831a92d9388846df9d4fe8445a7d","_id":"@ahsolo/lotide@1.0.0","_nodeVersion":"15.5.1","_npmVersion":"7.3.0","dist":{"integrity":"sha512-Ug7tzcCzulg5D2uzBZfODgoLEVnvdeslW4uAFwZ2EBAmODJ8xWeghZ8//UHjkITm0zTsLfSw4+yPHw73LXking==","shasum":"fa51825f52e28e58e6464f7a6bd0ebea6b007515","tarball":"https://registry.npmjs.org/@ahsolo/lotide/-/lotide-1.0.0.tgz","fileCount":27,"unpackedSize":20433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/NS5CRA9TVsSAnZWagAAibkP/A5kzhkIDqp9JX2c23ZL\ncN5NxbwB8YmZOBN0IopgzMZSUKRoxH8/suVdXpcPgGRAuoHCo5J53gg5lTf8\nthwOUgTfexOc3TUpcTmpLBDkW32l3eRwpFCJ4RM9jvCRVh2NBDB8YejOq8Z8\n53lbX+I0w0l4ZDX5JnVsvSSV62bXGtcIsXGd0nbYdRsrtYl2ZCToKmUabzou\niTD1y+fW52YklDCMUlMn+e+3NvT0+x4XRhjqa1v+xv1JkywRAFtzeS5K4bbl\nU/ukg9Sz/2e3H0iPTfKG8D4Jg26OMmjVB1AQUMf7XG0UGY/zngUOnCE56Lmh\nZzHObn4R4nv1EyJywc0KPcZ3D0qbwHAZBz8FmZiogDyUBe8AUXBBli+vmA+h\nMAo625RLFP+CqBMYjqVmIb2QNj+o81tmrCAVTRaOVxCBhtMZxsy29dHT++V3\nIBH9McES5kMm2mdVBDdNoAy+8RGZHK3A2QEOWUwMxfTKdGlADE1PIH1siY40\nvrYWaQtZmawc0LvaRYp0B6RI/lQ9tIl/29S6raXRtl+SCbTIal+EUZva7sP9\nfwh9/Hnhw2sWzZvioKdZ42xV7gnZBiTJVbwurm7m5x06rr2BFikHsJOZjaQY\nu59wvuDSjDqfMiiSg4YbSkZhfZ7Etkduo3FkI5J2pK4XTNuUZ2VFzOq1TAvU\nUsE0\r\n=Bj4x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp1SXLZrPsSYPHwAHCaXooHFWECHXYvYNMy9oKm6mYmQIhAOO7dwG0EopqStisd+sh37hNXeBFBufZeHUCT20+VS5h"}]},"_npmUser":{"name":"ahsolo","email":"junmenghan@gmail.com"},"maintainers":[{"name":"ahsolo","email":"junmenghan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1610405048682_0.3072198683969165"},"_hasShrinkwrap":false},"1.0.1":{"name":"@ahsolo/lotide","version":"1.0.1","description":"lotide assignment for Lighthouse Labs coding bootcamp","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/ahSOLO/lotide.git"},"keywords":["lotide"],"author":{"name":"Andrew Han"},"license":"ISC","bugs":{"url":"https://github.com/ahSOLO/lotide/issues"},"homepage":"https://github.com/ahSOLO/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1"},"gitHead":"a3f5d25dbf5b638358a4920e109cb61e3417709b","_id":"@ahsolo/lotide@1.0.1","_nodeVersion":"15.5.1","_npmVersion":"7.3.0","dist":{"integrity":"sha512-ZL2z7ip1mk3Gl/6szo3ZNpvX3xtCGKUsZNH6YRWTxCekt4Ye1QLalVZevWjmMat3xDvPCeiPBMtAiuB9uzu5/g==","shasum":"ba0069e1cfd5e7f5f67747ebe6368ec0228c4489","tarball":"https://registry.npmjs.org/@ahsolo/lotide/-/lotide-1.0.1.tgz","fileCount":32,"unpackedSize":21064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/NyzCRA9TVsSAnZWagAAQPQP/RzK+pZRG4sgy0MQ+rkM\n6QQzlaBRdFFbThPvxDXP1EKbG4pnP6Z0ow94Tw6Sp0BVVPrS6OXLlyiBz6sx\nR32QDOHJjBhQvFGEZ178JcdJ4+pVgDDS7p8RUuLWOyIBJqIQw6ENYPKR1jfB\nu9cBQ3WJ5BVORyaTD0kRFV6OKPs+IEVFCQ5i9bcSgkPpsb8WROP112Uxc+pc\nSCpoOoIHoiDGppmLXbR0kLjAwB2KOgVN+a2ssv9GqAt1oLequqx/0+hN3AHH\nwoLxT3iKfC+oBps2lYmOAN2R4eedq0d+5x0uTwhrgr6ZKChr9ooRk22L1D+G\nCRR9wg5MNHWnm+7yZFN5cstNNHyrO/CYwenJ/5IiExeq8FoOmTcZu9rK6S/Y\nF0H2LOUy5IAfJY15uyl3yxEk6IF9zfEF8WCzTQ990iofdUk5CiybByOuzhOU\nit5GypinZUk8J8bp5Tku9ZHQ5Tr3v++hhfXJkonBTlFsaWTv7aMvtCTyeLGl\nLRANev6X4wL3RGyUR8hmID/srZbnAYbrTd5qOw0wFcvi5j9mpDxE8cyFGaOi\nyS5t0TEo+vrUq4bQ2sPcZFo29YmkcOsrd2RHE4YW9c3TFs6RHnY2Mq2kaf6X\n5tTYqW3eA2JZZco9DO+hWYq7YuJIYj4sL7lMFVXP4bSKVLc1gc6gz8OyurXm\nJQWO\r\n=EvzK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFykWSh9n73KPdFeh77Rp8QSsVk+RlD7UlrV6squ8hv0AiAPwv8JDzHnz18WqCAa2fnpkqZTwm6SNWXt5aSJsd6+CQ=="}]},"_npmUser":{"name":"ahsolo","email":"junmenghan@gmail.com"},"maintainers":[{"name":"ahsolo","email":"junmenghan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1610407091306_0.07827572460588139"},"_hasShrinkwrap":false},"1.0.2":{"name":"@ahsolo/lotide","version":"1.0.2","description":"lotide assignment for Lighthouse Labs coding bootcamp","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/ahSOLO/lotide.git"},"keywords":["lotide"],"author":{"name":"Andrew Han"},"license":"ISC","bugs":{"url":"https://github.com/ahSOLO/lotide/issues"},"homepage":"https://github.com/ahSOLO/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1"},"gitHead":"4d63899b65c1080d1517b873089da4c7c2e6cdc4","_id":"@ahsolo/lotide@1.0.2","_nodeVersion":"15.5.1","_npmVersion":"7.3.0","dist":{"integrity":"sha512-9rkBHwV1/8PMzVNAK2kLrws/okGvcCE+8opRzptCU3jQRr3PcfPI3NiH34CXMcdpxi8I5sLk45k7ZVWxF+3Upg==","shasum":"46fe906e332aaee5e36dfb6c2713e5e9dc2e84ad","tarball":"https://registry.npmjs.org/@ahsolo/lotide/-/lotide-1.0.2.tgz","fileCount":39,"unpackedSize":20173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/QgUCRA9TVsSAnZWagAAvBwP/iXR5BhV4NZbab7d4E1w\nJdA+Em5tcpoXtl6l4LbP7e/ZwHcdd7+rc9mT7iYNstPpR2xNc1NGwaxx5c8s\nUfI9m0wNU7dWdCzySP+MmDWlAQhqCFSNA52FuPPJuaFMaUykGKe2maAp6nwb\ndUoF0/dXr8mRN2uttLLMWqsVzc7Xv5obhn0c5P2BgM6SIFhzguaE6CeFBrrI\n9GqUa7KTfMpeUap/c86HedUQ2LsKF6SGkD+to3aVBA1Pq9rZyKHnosldWhKv\ndnujkR6rVdYJjt+YXrGRk2LaXxfw3252LmIVmbq2KRz/jL7WkzSylUO6wleG\nbWiPXksGGwKOFfdEDKYXiI1vggTbzQc7SJrP3R+jE4ZPXF9JIyUs9BfUpeVR\nSNqJ4Heo9AhmmXeWztzP4WQYQfIzNcDzwVRYdikRneOc9XXeB8e81dpd+B7p\nSrE/3STjia5iLk8jgZvIfEthTSX/wP79gjlynNryEaqR1AV7jp1um1Wao8Mt\nryEe0Gjjmrz5CoKbeBhY5i5N4kKB6hY630QN3si3EozVwMoCxr3ZUMb2rtHk\nBonbOAT3Jhc7PFVQtwmaxjbCmzUmfTfTLR3JjslSj+3P5zuHz1H7rCtwTwAq\nfID1S0X9qEclBrIPtZnUaxyN/N6O64kX5J4F3uZjoDBV3g8QyJGpbcY7a0j2\nB1WH\r\n=kxNV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCBCusMOeQo7tP3JHTGHiRF0RSPd0eDIMbAIdldjR+AAiEAtnrhHgtMLP3ql4L/BRt1oHi8h9SIWOb1Zs8Nf2LpK30="}]},"_npmUser":{"name":"ahsolo","email":"junmenghan@gmail.com"},"maintainers":[{"name":"ahsolo","email":"junmenghan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.2_1610418195968_0.7628929027783942"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-11T22:44:08.636Z","1.0.0":"2021-01-11T22:44:08.831Z","modified":"2022-04-04T12:14:18.378Z","1.0.1":"2021-01-11T23:18:11.444Z","1.0.2":"2021-01-12T02:23:16.184Z"},"maintainers":[{"name":"ahsolo","email":"junmenghan@gmail.com"}],"description":"lotide assignment for Lighthouse Labs coding bootcamp","homepage":"https://github.com/ahSOLO/lotide#readme","keywords":["lotide"],"repository":{"type":"git","url":"git+https://github.com/ahSOLO/lotide.git"},"author":{"name":"Andrew Han"},"bugs":{"url":"https://github.com/ahSOLO/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 @ahsolo/lotide`\n\n**Require it:**\n\n`const _ = require('@ahsolo/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(arr)`: takes an array and returns the first element of the array.\n* `tail(arr)`: takes an array and returns a new array where the first element has been removed.\n* `middle(arr)`: takes an array and returns the middle element of the array. If the array has an even number of elements, the two middle-most elements are returned.\n* `eqArrays(arr1, arr2)`: takes two arrays and returns true if their length and contents are equal.\n* `eqObjects(obj1, obj2)`: takes two objects and returns true if their keys and values are equal.\n* `findKey(obj, callback)`: takes an object and a callback function. The callback function is called on each value of the object and the key associated with that particular value is returned.\n* `findKeyByValue(obj, value)`: takes an object and a primitive value. If such a value exists, the key associated with it will be returned.\n* `flatten`: takes an array and flattens it by one level (if the array elements contain an array, the sub-array will be replaced by the contents of the sub-array, with the length of the original array increased accordingly).\n* `letterPositions`: takes a sentence (string) and returns the positions of each of the letters within the sentence\n* `countLetters(str)`: takes an string and returns a count of each of the letters in the string.\n* `countOnly(arr, itemsToCount)`: takes an array of strings and an object specifying what to count, returns a count of the specified items.\n* `map(arr, callback)`: takes an array and a callback function and returns a transformed array created by applying the callback to each element of the original array.\n* `takeUntil(arr, callback)`: takes an array and a callback function and returns a slice of the array with elements taken from the beginning and until the element where the callback function evaluates to a truty value.\n* `without(arr, extractArr)`: takes an array and a second array of \"extract\" values and returns a new array with contents equal to the original array except with the extract values taken out.","readmeFilename":"readme.md"}