{"_id":"@altairioffe/lotide","_rev":"1-eae5ce494a11124857ed8d7edd466acd","name":"@altairioffe/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@altairioffe/lotide","version":"1.0.0","description":"A mini clone of the Lodash Library","main":"assertArraysEqual.js","directories":{"test":"test"},"dependencies":{"chai":"^4.2.0"},"devDependencies":{"mocha":"^7.0.1"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/altairioffe/lotide.git"},"author":{"name":"Altair Ioffe"},"license":"ISC","bugs":{"url":"https://github.com/altairioffe/lotide/issues"},"homepage":"https://github.com/altairioffe/lotide#readme","gitHead":"ae9f06cd724f93ba57de6c75ec61ec8db9afede9","_id":"@altairioffe/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.13.7","dist":{"integrity":"sha512-2P+cCHjoCJhE0h3YSYXcCkOH0mQsiQqAs2kk3em75nxL7hwbm6cXIZRgjuiMxZ9ERRHl6AITh4jE1NJs9tiriQ==","shasum":"65183d88c80a99c4bd53ba22c3f7f092f38cd6ce","tarball":"https://registry.npmjs.org/@altairioffe/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":10001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQePNCRA9TVsSAnZWagAA6goQAIIENrHoB0/rCZfpLkqu\n2heXuQR4X6FtMiojwF/eDCrXq+eSd6w0VSkw33hNrXwbQBaeqf0VJyOzIntl\nxk05VSzt3CnB/K6it0Py7shurZAsZ4AtbzFkAB5sWvgpZR6IUPk4lBNdTOi8\n6PkmrRt513HcEafoPjpJBWsNFqI48UDVE2YyoR7ViloN6H+k3i2vZWxZu8M5\nPWgjW6Gzqkq47W/OczS5Nxlbgy5IOzKbFKmVmK4dF1VbO6rymNwy2H97KpN3\nFE8ikMU9M9fvytp9eihA4XVEqcFygg8AgDx1+Bxtj8Cblqda+yTYPvWwt4h8\nIpToMQOePwBHRX3SKRYPWGM9Py03yN1ESw9RrOrlq8Puitx1xfPhWVouMNsG\n1FGEjUH2qrhiET6OkwpZaG3QvfnFgiJ4/PUhaVzafkNb8xxe/1kHkZaJyBWs\ndkHT7AV1L0hMncfz/M2HtB5xFkgY2D59ppo1uCos2ijaOufsSb/BjlNvJEvR\nW9ydd60RetJmwHIZAu/cOclNFrxLKAJtOvzrkYYIosENAaMKiApMrkdw8qH5\nX+vaGhwxV91WyEGOPybNfuhZv9Lu8uYxp8MWETGL3JPk3qZimr7IoUTwy7kE\nfD7umXzciZO18TUm7N1i2+ls1nGjvNXlGWIWJjx6IWNNlZYf77oF2cbYyDWl\n6uiX\r\n=tSxE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIR0msok9KW47mHp6B8IUzhY6Z4hzrcJS5i3+axD4nawIgJukDjmtFX+fV1RnCgyZ1T9OQrw/AQaw7ADLsBGQ8y70="}]},"maintainers":[{"name":"altairioffe","email":"altair.ioffe@queensu.ca"}],"_npmUser":{"name":"altairioffe","email":"altair.ioffe@queensu.ca"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1581376461383_0.23359824974677879"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-10T23:14:21.353Z","1.0.0":"2020-02-10T23:14:21.498Z","modified":"2022-04-04T13:39:32.139Z"},"maintainers":[{"name":"altairioffe","email":"altair.ioffe@queensu.ca"}],"description":"A mini clone of the Lodash Library","homepage":"https://github.com/altairioffe/lotide#readme","repository":{"type":"git","url":"git+https://github.com/altairioffe/lotide.git"},"author":{"name":"Altair Ioffe"},"bugs":{"url":"https://github.com/altairioffe/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 @altairioffe/lotide`\n\n**Require it:**\n\n`const _ = require('@altairioffe/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(array)`: takes an array, returns the first element of that array.\n* `tail(array)`: takes an array, returns the array without the first element\n* `eqArrays(array1, array2)`: takes in two arrays, returns true or false, based on a perfect match.\n* `assertArraysEqual(array1, array2)`: takes two arrays, logs message to console asserting their equality.\n* `middle(array)`: takes an array, returns the middle-most element(s) of the array.\n* `without(array1, array2)`: takes two arrays, returns a copy of array1 with any elements from array2 filtered out from it.\n* `flatten(array)`: takes an array of arrays, returns flattened array.\n* `countOnly(array, object)`: takes an array and an objects, returns an object listing counts of each array item.\n* `countLetters(string)`: takes a string and return a count of each letter in that string.\n* `letterPositions(array)`: takes a string, returns indeces for each letter in the string.\n* `findKeyByValue(object, vale)`: takes an object and a value, returns the first object key containing the value.\n* `eqObjects(object1, object2)`: takes two objects, returns true or false according to match.\n* `assertObjectsEqual(object1, object2)`: takes two object, logs message to console according to match.\n* `map(array, function)`: takes an array and a function, passes each element through the function and returns the resulting array.\n* `takeUntil(array, function)`: takes an array and a function, calls the function on each array element and returns a subset of the array from the first element, until such element that the function returns true.\n* `findKey(object, function)`: takes an object and a function, returns the first key on which the function returns true.","readmeFilename":"README.md"}