{"_id":"@dexyod/lotide","_rev":"2-3b8f3e0d2ab5365ddf8451d678f4ad30","name":"@dexyod/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@dexyod/lotide","version":"1.0.0","description":"A mini clone of the Lodash library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Dexyod/lotide.git"},"author":{"name":"Declan O'Donnell"},"license":"ISC","bugs":{"url":"https://github.com/Dexyod/lotide/issues"},"homepage":"https://github.com/Dexyod/lotide#readme","dependencies":{"chai":"^4.2.0","mocha":"^8.0.1"},"gitHead":"6e056bf3c97689553c2a9e301d73c1aed29c0e8d","_id":"@dexyod/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.7","dist":{"integrity":"sha512-vcjZ8oomFxLRAPgeDoS4yB4I0VHflf0ncy0BbrB5RHSV3Yq7dZU2fS2CpmwAUArlG6IrXZ0kZkI4GzjESsMRrA==","shasum":"0eb26ea583d8839fbbda20121e7cac23affb86d5","tarball":"https://registry.npmjs.org/@dexyod/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":18647,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHx/MCRA9TVsSAnZWagAA75gP/jnUxofImlwCdTLa8fxK\npQwEn/iaYI1k6wXOlBeRYzpFePXW4LoF1PZNHBdyVOVdFt2xbC6l//6litdn\nGRjLEP1sdDRTFiGFkoLoVAzsCttqITZ11hEEk/mFE4M5uu+aDWx3AURCrRWD\n9dKlVs6D4KNdJUUubAV2ZTy0tqhCcuecphnsDWgYgpgPURU34WTL4CCFSAvF\ndREbqwrLK54khy3AtORO2+2mYJaTgreQP9Bk1JEP3fIbFj40rl67B2kWFeFt\npwwGm2K0o0HuYA7auqNNcDJHV8rs3UsG29HlygTTwEriVlrm6CTxAmALkHuY\nJR+UBKtwJzQDqZQRktOlyc9w//DqdoKIpEcuVAd9ir59tEL41TETWIlLRuaG\ny7UJ5Gn4PyqleYZQcjq2kEuj7aIy/nU4EW2gCbhoukkJNk/Z/Skkz+Y3Wct3\nUEzD6Ryc/9qe6TgI1Er98/shfCNoVhlRvUrcqV2w7xN/si2jhQ/CEEtVWawq\n5+SuXG9JWrZL40gg5NzkXs5FNiUMWBZ7bcPin8pdx+TiG0XeMrrTst4XR9AN\nETyp/lIPCnpiFoLkhPiGKjCYu3WdHLaLsH/PpAv+SLpS9zgsizIWX22Hq/jv\nQKw+g906ZvhGL2Z5RNS8+0uCGofoEUM2dH5m0HaQq3qqUf0ok0sSKgft3wAD\n1q7g\r\n=kGXD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBsM9wbzC0BmtpCJUuTykdVYYB8oc8XsXYIEhwdrUsZ9AiEA3rbybWrv4aJjp92vEr/HSF79V/cbf5M5Qc/qQhGzEP8="}]},"maintainers":[{"name":"dexyod","email":"dexyod43@gmail.com"}],"_npmUser":{"name":"dexyod","email":"dexyod43@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1595875275900_0.03913576245392858"},"_hasShrinkwrap":false},"1.0.1":{"name":"@dexyod/lotide","version":"1.0.1","description":"A mini clone of the Lodash library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Dexyod/lotide.git"},"author":{"name":"Declan O'Donnell"},"license":"ISC","bugs":{"url":"https://github.com/Dexyod/lotide/issues"},"homepage":"https://github.com/Dexyod/lotide#readme","dependencies":{"chai":"^4.2.0","mocha":"^8.0.1"},"gitHead":"5e3b3f1625435d12df36df9848e2dc96fe95bb48","_id":"@dexyod/lotide@1.0.1","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-pIVGzDGwKaeLJxDkwwBaYuUOVvERVuLUB4ypKa3Aq8v7HcCSQyypQXQJ9zaXhOI56h7re6Iu432gxZh5NAtkZA==","shasum":"f1406ef16c2b8f64b3a0ddda019b30d463269429","tarball":"https://registry.npmjs.org/@dexyod/lotide/-/lotide-1.0.1.tgz","fileCount":37,"unpackedSize":22198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHzwpCRA9TVsSAnZWagAAppoP/Rx0NNTY7+uDeeJ1TgQw\nZ0cjWXJJvlesm4TKDkSK7TBEoIhraNhUxidccSDO6MVOy4QdzCT78cy1MT86\nYv+KHDZtE56Gij9xZNsXvgfVMASWOkIg+kJ6mOV6GsRbypaHREbQ8LdeTqlY\nDKkNJWPIt/AtWIxI9Al0NYisXofR3aRU5xkkMEaUUV7YyFmhHic32RJyyDJ6\nnOYLa+LXJvfcw/qL+xbnP9DH6E+cOW1fKSZW6WGHvpuwYEeDz8nGiG4N9flx\n8kdu1iqM+oUb+qipeJoG0mutsVbACzQSWRBO5WwuDoA9PIdVGy/yjZ6z4oLH\n5wpLoRUelpS2BHeha6ue1VZUXRNaCQW0XBJS4LOUcFptc77mHFX9PHJO62YA\n2rycP4kLXp/VO7HeegPenkIcZjCoHx2kYAfPn6SMn4MNv/w5jpPwg/I81mwp\ns4IOaGjDTXBHJfBqvRC6Ct1xJhReORKkrQBB462c1rDLHjW3q1067ZwGuqD6\nKgCEYWKGk3gjTcWbc5i1f+KLOvVO5G03xVkAwWiLPFHCL9g9hbVMaN/qPz2U\nEXRqELiliWmt9Hto9b8pUNMcTzuUsqYPGmyj2jz/RPhweRnfARbaNQGS4PBY\nnG4VoL2NbjvttoOT6lJZFf/p5qk39d10tYKOyG6dt2bL575z9BpY0G3+Y/Nv\nNZGF\r\n=LGg3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOtjiwrD+o4HuYS6fBR5fNTS93AHcPqaRXypT5oig/SAIgPkOk/Rtk59HhqcAW+dGHzSFZBXNrOVQTE3Inup7Mlfo="}]},"maintainers":[{"name":"dexyod","email":"dexyod43@gmail.com"}],"_npmUser":{"name":"dexyod","email":"dexyod43@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1595882537265_0.6673763390893608"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-27T18:41:15.851Z","1.0.0":"2020-07-27T18:41:16.190Z","modified":"2022-04-05T04:12:52.520Z","1.0.1":"2020-07-27T20:42:17.524Z"},"maintainers":[{"name":"dexyod","email":"dexyod43@gmail.com"}],"description":"A mini clone of the Lodash library","homepage":"https://github.com/Dexyod/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Dexyod/lotide.git"},"author":{"name":"Declan O'Donnell"},"bugs":{"url":"https://github.com/Dexyod/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 @dexyod/lotide`\n\n**Require it:**\n\n`const _ = require('@dexyod/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- `map(array, callback)`: The map function will return a new array based on the results of the callback function.\n- `takeUntil(array, callback)`: The function will return a slice of the array with elements taken from the beginning. It should keep going until the callback/predicate returns a truthy value.\n- `findKey(object, callback)`: It should scan the object and return the first key for which the callback returns a truthy value.\n- `middle(array)`: The middle function should return an array with only the middle element(s) of the provided array.\n- `countOnly(array, object)`: countOnly will be given an array and an object. It will return an object containing counts of everything that the input object listed.\n- `countLetters(string)`: The function should take in a sentence (as a string) and then return a count of each of the letters in that sentence.\n- `letterPositions(string)`: The letterPositions function will return all the indices (zero-based positions) in the string where each character is found.\n- `findKeyByValue(object, value)`: The findKeyByValue function should scan the object and return the first key which contains the given value.\n- `eqObjects(obj1, obj2)`: The function eqObjects which will take in two objects and returns true or false, based on a perfect match.\n- `assertObjectsEqual(actual, expected)`: The assertObjectsEqual will take in two objects and console.log an appropriate message to the console if they are equal or not.\n- `eqArrays(array1, array2)`: The eqArrays function takes in two arrays and returns true or false, based on a perfect match.\n- `assertArraysEqual(actual, expected)`: The assertArraysEqual will take in two arrays and console.log an appropriate message to the console if they are equal or not.\n- `without(array1, array2)`: The without function will return a subset of a given array, removing unwanted elements.\n- `flatten(array1)`: The function flatten will take in an array containing elements including nested arrays of elements, and return a \"flattened\" version of the array.\n- `assertEqual(actual, expected)`: The assertEqual function will take in two arguments and console.log an appropriate message to the console if they are equal or not.\n- `head(array)`: The head function takes in an array and retrieves the first element from the array. This is often referred to as the \"head\" of the array.\n- `tail(array)`: The tail function returns the \"tail\" of an array: everything except for the first item (head) of the provided array.\n","readmeFilename":"README.md"}