{"_id":"@anthonykao10/lotide","_rev":"1-3e7012b98e78799a39e815e068b2df25","name":"@anthonykao10/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@anthonykao10/lotide","version":"1.0.0","description":"a simple javascript library inspired by lodash (https://lodash.com/)","main":"index.js","directories":{"test":"test"},"devDependencies":{"mocha":"^6.2.0","chai":"^4.2.0"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/anthonykao10/lotide.git"},"author":{"name":"anthonykao10"},"license":"ISC","bugs":{"url":"https://github.com/anthonykao10/lotide/issues"},"homepage":"https://github.com/anthonykao10/lotide#readme","gitHead":"78377bda2581a8da313c8f293127841b32af7a12","_id":"@anthonykao10/lotide@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"anthonykao10","email":"anthonykao10@gmail.com"},"dist":{"integrity":"sha512-41g8NYHxjyKigAzMFi6rPmQRp5JitDjPw6cr8p83bAQFbJ9HBKyCsjtMhMItY1L5gIDvWfv5eXAyQbyfEGUYig==","shasum":"304288e8021f3f83ad3c9c26e93584d9c2165e11","tarball":"https://registry.npmjs.org/@anthonykao10/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":21899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdZII9CRA9TVsSAnZWagAAL/YP/2baG3qplTOAQMbzeSB2\n4NPrTZaY2RaA+53+LMgpH9qCzc9xk9QDMszGaUz9Ft/2oPmTvDLIPmIVUhGx\n/YwFuiCkMv9M8N/on2VE4SEGla/Q1tYmmWnAt2UFs3Cebs3pA9KXmMvAiXaX\nQ200HgcQrFnF91nE75rlHQrVyvvnJyUuL9XbQLfOboffI5Jo4JL2pmEoFOrK\n4Dljy89crybXj+wN3brKNuUDGT0T53z0iyoAGaAzFD+VaOwUX2bGghiPv4hY\nl+g8BxP9NkaMbr4tKb3SrL6bpkjJXhMGiy9ZqUFNJkbwg3levQtlimmg889h\n0Kaz+6QmmtFN5eIrEg+6siaQ2HOec1ExFWI0IrDnnEN3UT8oyJ/2HTcTKzhm\nwFj9j1+kQmtVFT014JNRfDxhF4wvBG9tyY6qpoQPCbzL0t5avRYLlm8yR3G2\n05Qy5id1BGYQ8mnEG+uBCbs2Nt2hsI2kRMzIkvSJNch7H5E7qEk0Wf7SmTJu\nmrXo/FnI6bcEv42joqQZU3xDGvEoGKsP5t/R3FIfzUy+HckFD57tGToMOTev\ntt21LdR943GBwJb5U8FmNiLD25RwPTOU9Yk0Nmhg7PhmrFBuI/EMHItRw1AZ\n3+zGABbQLA4MDGubRqdjmpkUhfLZXTYwdNaQDN0X6yGVBgYsG3lqPyFvcZCT\nslIN\r\n=04e0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHX++upVywDB3f2pBU7HOykRJQnUWC21Jm1VywzswvpnAiEApNjC5WLSpl8YCHy7b88h83m2nLeLGcgzQIqOqEjJgXA="}]},"maintainers":[{"name":"anthonykao10","email":"anthonykao10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1566868028843_0.4023534799761401"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-27T01:07:08.629Z","1.0.0":"2019-08-27T01:07:09.016Z","modified":"2022-04-04T14:21:45.921Z"},"maintainers":[{"name":"anthonykao10","email":"anthonykao10@gmail.com"}],"description":"a simple javascript library inspired by lodash (https://lodash.com/)","homepage":"https://github.com/anthonykao10/lotide#readme","repository":{"type":"git","url":"git+https://github.com/anthonykao10/lotide.git"},"author":{"name":"anthonykao10"},"bugs":{"url":"https://github.com/anthonykao10/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 @anthonykao10/lotide`\n\n**Require it:**\n\n`const _ = require('@anthonykao10/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)`: returns the first item in an array.\n* `tail(array)`: returns everything except for the first element in an array.\n* `middle(array)`: returns the middle-most element(s) of a given array.\n* `countLetters(string)`: returns an object containing the frequency of each letter in input string.\n* `countOnly(allItems, itemsToCount)`: given an array of items, returns the counts for a specific subset of those items.\n* `eqArrays(array1, array2)`: returns true if two arrays are the same (deep).\n* `eqObjects(object2, object2)`: returns true if two objects are the same (deep).\n* `findKey(object, callback)`: given an object and a callback, returns the first key for which the callback returns a truthy value. (Returns undefined if no match is found).\n* `findKeyByValue(object, value)`: given an object and a value, returns the first key which contains the given value. (Returns undefined if no match is found).\n* `flatten(array)`: given an array of arrays, return the array flattened to 1-dimension (only supports a single level of nesting).\n* `letterPositions(string)`: returns an object of arrays, which contain all the indices (zero-based positions) in the input string where each character is found. (Array stores each occurrence of a letter).\n* `map(array, callback)`: return a new array with each element transformed through the callback.\n* `takeUntil(array, callback)`: given an array and callback, passes each element of the array into the callback, returning all elements until the callback returns a 'truthy' value.\n* `without(source, itemsToRemove)`: returns a subset of a given array, removing unwanted elements.","readmeFilename":"README.md"}