{"_id":"@amphakarn/lotide","_rev":"1-62a4a6d74ac28b57605a9993748650a9","name":"@amphakarn/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amphakarn/lotide","version":"1.0.0","description":"lotide project which is part of the learning web programming at Lighthouse Labs","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Amphakarn/lotide.git"},"author":{"name":"Amphakarn Pisuthigomol"},"license":"ISC","bugs":{"url":"https://github.com/Amphakarn/lotide/issues"},"homepage":"https://github.com/Amphakarn/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1"},"dependencies":{"my-package":"0.0.0"},"gitHead":"16e00784cee237f9cfe9e7d07c21a50ab1dfa8a9","_id":"@amphakarn/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GoVHvPfzD3omQApaBILS/dvAuYrJAAsDF4g8EkYH5SOpk9G1shwLbmalAkxM4z8kCzrN0ubmORauVl/RboZr+g==","shasum":"d7267baaeb1db73a82f238256aefcd2daf009472","tarball":"https://registry.npmjs.org/@amphakarn/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":20652,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxawDCRA9TVsSAnZWagAA6/IP/j5ETE8TpX80Bwg7hvy2\nFnG0KIVWTjwcmMhTOBCBliWgq/vomSC8ZvCwqpKWzhIkRBjFo5nNmDACSK25\nLXhjOljHg0BJp/JKiovPu06dVWfGV2mn2y2hUBNNMYtzDRK/+zrl3fZEJI/+\n3cG0ES6jWI3zq30mb69Cv2fEEx8cKEA3eu/Pp5RH3kcA55p+9BfeTiXnZRRQ\niMiOztUV66DlVhkLl1jWc9MUUSwBr+l14UQOaGNJ7irxpUXwB4IznZYD9j+p\ncDB9k6cuY3l1eNr07NdyxJZLUf1lRkdtAsXpmgETwDdYRw+qqwoZ5KdKKxzA\nZWZSLfxxRaf2Km+d10/p/65Bmun2HLKjKHT6vBkNPYDvl9qJt8b22eSiI8QT\nUJdyCiGWX/2PHR99iaLkahSC51QWpYnZ+0LpJS2d5r8o67tVMcaXhhvzV2s/\nLFy0fM1ljp8J2d68kjCu74cDsuyj/VDLajFqOSUK6/S1upEsiAGEbnxZF0ZS\n5uzU4aZ+owiPr1lanCGBdEaWml0QSTl4H5UsUtmb80z+O0ch5FCbUQ1ylMwe\n4V8VgsRWD8tpFkCqcxDHZC603hOJ0qHLolb0w5goD3qupeGzdxgByTQSPRO8\nD6MkhTGgdMz8aVhC4PX7Y6+4lDrNWRic27FafDf6g3nADM0eNVJq3Eg7reO2\njCd6\r\n=bnsD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfRynXhw54ESYImOL5SBmLRmRxEsvm9UoshN88pfZY2AIhAPIqGdXj1q0khu9FWMjDru/qDzg8f0mx2XzT77oH7NCi"}]},"_npmUser":{"name":"amphakarn","email":"pisuthigomol@yahoo.com"},"maintainers":[{"name":"amphakarn","email":"pisuthigomol@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1606790146586_0.4164369973441997"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-01T02:35:46.541Z","1.0.0":"2020-12-01T02:35:46.730Z","modified":"2022-04-04T13:51:40.218Z"},"maintainers":[{"name":"amphakarn","email":"pisuthigomol@yahoo.com"}],"description":"lotide project which is part of the learning web programming at Lighthouse Labs","homepage":"https://github.com/Amphakarn/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Amphakarn/lotide.git"},"author":{"name":"Amphakarn Pisuthigomol"},"bugs":{"url":"https://github.com/Amphakarn/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 @amphakarn/lotide`\n\n**Require it:**\n\n`const _ = require('@amphakarn/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* assertArraysEqual(arrA, arrB): Tests if the two arrays are equal\n* assertEqual(actual, expected): Tests the equivalence of two given primitive data types\n* assertObjectsEqual(actual, expected): Tests if the two objects are equal\n* countLetters(sentence): Returns a count of each letter occur in a given string\n* countOnly(allItems, itemsToCount): Takes in an array of items and returns counts for specific items\n* eqArrays(arrA, arrB): Compare two arrays and return boolean\n* eqObjects(object1, object2): Compare two objects to find out if both objects have identical keys with identical values\n* findKey(object, callback): Return the first key of a given object that the callback function returns a truthy value\n* findKeyByValue(object, value): Return a key the match the given value\n* head(arr): Return the first element of the given array\n* letterPositions(string): Return index position(s) of each letter in the given sentence\n* map(array, callback): Take in an array of string and a callback function and return an array of the first letter of each word\n* middle(arr): Find and return the middle character(s) of an array based on the length of the array (return 1 character if odd and return 2 characters if even)\n* tail(arr): Return a new array of element from index 1 to the rest.\n* takeUntil(arrA, arrB): Takes in an array and a callback function and return items that the callback function provided return a truthy value.\n* without(source, itemToRem): Takes in an array and a specified item to remove and return the leftover items","readmeFilename":"README.md"}