{"_id":"@cassandralin/lotide","_rev":"1-d7e08da6857a75fd082ca83f74477609","name":"@cassandralin/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@cassandralin/lotide","version":"1.0.0","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/cassandralin/lotide.git"},"author":{"name":"Cassandra lin","email":"cassandralin92@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/cassandralin/lotide/issues"},"homepage":"https://github.com/cassandralin/lotide#readme","description":"A mini clone of the [Lodash](https://lodash.com) library.","devDependencies":{"chai":"^4.2.0","mocha":"^7.0.0"},"gitHead":"e6f3cd4778a0b0b6566ae7c72e12ae5b813e1611","_id":"@cassandralin/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.13.4","dist":{"integrity":"sha512-0sFuwE0i1UnO+PAVwYGO7l73liRFL7UZYbfq2Mta+mMMHzNcOiZbFth5BAEXblsa2LOrKU+HiipkX+jxcSL9wQ==","shasum":"aafcf37dd0fa92f6aaf34239d7e8d71546f66738","tarball":"https://registry.npmjs.org/@cassandralin/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":18128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHQhFCRA9TVsSAnZWagAAJJQQAIVf7A5yOOYLsDJBnNXC\nPmfWaQOYFFEO6h9tS1egXn0nx6TynxQfIC0XYx0M6qQZInVZdKTM2GWdQR2Z\nIuTAz+Td1zrU1WvkVrESG1Oqd/ujtxk/QofXzoaJj0n6KmVz2s6WxGxDOHBa\n1L2mJ9lWXvwKSnZVltz6p1uA1w8D6w35yseZbE0NmzknOOw5tWRpgzLlM6Jb\nW3hZoSkBlxlrMN4lf+kFcZqVO1fLwjp75vtP/nUFoaNS/53VhGh8x+hIc1f5\nfUdP2yBPtaENlo/rbyIE9ilDNu6l14oc47h7LieoxJS+YlJWB62oiu4hLDiL\nJH5iBvX+uIaZwbDmFTVQ/X9jwIrmdBMSDaIElRiNm69j0ZPli5apWW2YSiZi\nO/j++qTzstApq07fH5ivfChFVHzy3vMmmEBVuedQKswBH/Rw3hdDWD1qGq77\nJZfHyrUwHBAsJqtXO6Xlyx+1JLeaT3qqwfh2VLsmhRVI9xFbJlItcJYiN3S+\niC1lvNmXyPTasPZoT1x++/f9J0+RKuOU719Pj7C9WgcKZo0rGI0p6su+ppHl\nnpUbj3NzaNIEy77RVwcYnnFmwaBfgdHBkdA6PMXVlcI2PVQnELLDk0Ns3HjF\nT7mlCmPaAAf4TE58skl83DgZpawp8tCYBQkUOqYFOE22FDQr5QzkhjMKBwPb\ngz8Y\r\n=Ff4W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOGM8qc5n0YFyugJtrGrWVwoUFpzx77NI6wl0wkRPbEQIgTFX3gHGnl8+nos+LLZ3+y4rXzzzKv1sf2cPIoDgvbjc="}]},"maintainers":[{"name":"cassandralin","email":"cassandralin92@gmail.com"}],"_npmUser":{"name":"cassandralin","email":"cassandralin92@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1578960964988_0.1479278852345125"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-14T00:16:04.958Z","1.0.0":"2020-01-14T00:16:05.139Z","modified":"2022-04-04T22:03:11.266Z"},"maintainers":[{"name":"cassandralin","email":"cassandralin92@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/cassandralin/lotide#readme","repository":{"type":"git","url":"git+https://github.com/cassandralin/lotide.git"},"author":{"name":"Cassandra lin","email":"cassandralin92@gmail.com"},"bugs":{"url":"https://github.com/cassandralin/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 @cassandralin/lotide`\n\n**Require it:**\n\n`const _ = require('@cassandralin/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 value\n* `tail`: takes an array and returns an array without the first value\n* `middle`: takes an array and sorts it and returns the value in the middle, if even it will return the two middle values\n* `assertArrayEqual`: Test Case, compares two arrays and returns true if they are the same\n* `assertEqual`: Test case, compares two primitive data types and reuturns true if they are the same\n* `assertObjectsEqual`:Test case, compares two objects and returns true if they are the same\n* `countLetters`: counts the amount of times each letter occurs in a string\n* `countOnly`: given an array and a value, returns how many times that value occurs\n* `eqArrays`: given two arrays, compares them and returns true if they are the same\n* `eqObjects`: given two objects, compares them and returns true if they are the same\n* `findKey `: given an object and a value in a callback, returns the key the given value is attached to\n* `findKeyByValue `: given an object and value, returns the key the given value is attached to\n* `flatten`: Takes a nested array and returns one array.\n* `letterPositions `: will return all the indices (zero-based positions) in the string where each character is found\n* `map`: map function will return a new array based on the results of the callback function\n* `takeUntil`: Creates a slice of array with elements taken from the beginning. Continues until the callback returns a truthy value.\n* `without`: without function should be returning a new array and not modify the original array that is passed in","readmeFilename":"README.md"}