{"_id":"@daniel_cy_lu/lotide","_rev":"4-7e8a091f8272ae0d07f5639d012366af","time":{"1.0.0":"2021-11-30T04:10:58.482Z","created":"2021-11-30T04:11:38.022Z","1.0.1":"2021-11-30T04:11:38.219Z","modified":"2022-04-05T02:40:35.345Z"},"name":"@daniel_cy_lu/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@daniel_cy_lu/lotide","version":"1.0.1","description":"contains simple methods to solve future problems(bootcamp project)","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/daniel-cy-lu/lotide.git"},"author":{"name":"Daniel Lu"},"license":"ISC","bugs":{"url":"https://github.com/daniel-cy-lu/lotide/issues"},"homepage":"https://github.com/daniel-cy-lu/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"gitHead":"d74c7ef2c2fede20eb2bda315bc822a0df4e2fe5","_id":"@daniel_cy_lu/lotide@1.0.1","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-Vg5ztKhDktcGXl02qKOeYeUouX14XLklkya1IyR9FvHAkAKOfV3HHnqzO7RR1n6zUm8e1lu7ve3XQ2QGq/YZmw==","shasum":"7f0984e2425d31ba0b2fcd5b45eb646fe85b080f","tarball":"https://registry.npmjs.org/@daniel_cy_lu/lotide/-/lotide-1.0.1.tgz","fileCount":24,"unpackedSize":17821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpaR6CRA9TVsSAnZWagAA9FMP/1TeyuNT2QswA1LOED0P\naF+Z0LRHdra6AKX07IOt2boPGjEOXqa9cqDCih2EDcO8OfAjcKNTK0QSpDeT\nTg7S/9piE0nO0aQaSYG6+mEOJ5HrJF/0ayxh9eot0egFCnaYRVMrYT3i5kwO\n7B88ehtykXsx9AnSAQ09h1nGwEoj88yVQHO1FHV6h2CBuypjcpbfKVf2GFcw\n2efzK0r13Q2wuWgmfNWG1iQKlsUhC+uc1Ud3iWny8jCIFliFhjYyUt6bp8Fv\nFDZypbsvPcK9YUhVQgEe6uBgMykhgMumBFpNlGh+iarA2Tzkv7om3TbDSA1c\noaqUCNLsxEivbp4MA98o9Wo3fJWaftWpgvvYp7WwoHXxMAc1fnYSBEAitjMg\nFvX2R9QFEZlninsJpbvbJOx3jZMA32KeZ54YpvHL/hU7epNONE17rAdc+hTH\nYcbBJ2Im7DwdIjqCJSoQzNu0dYyfR2EmFwJEkpKbeu7gClvULkCyvfy2NZxk\nj0XIxKBT9E7huw9dgThFvSSIfXUaRHGWCng7QGEpkpC49ewoZfEyvGaDB/Pb\nGJV3mOLNJl1PigTCalVThSUlgbxWOrHNZ3B1z6bAqLHUau1JkyHvjxmP4KSa\nrGGuxQwCKdsjiZkO5MfmU9UwMW8WB4cw3YGJo605DncIUoV0rLOJ+uLOttsB\n+mc5\r\n=UARu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaxAGdcubv2w2KheAPAHKolWBcDNjwQmv2b4O4xfzUXAIgdklC/IiekHAL6eoh0SG+IRzqnFgN4S9LkPBGKiNPjFI="}]},"_npmUser":{"name":"daniel_cy_lu","email":"daniel_lu@hotmail.com"},"maintainers":[{"name":"daniel_cy_lu","email":"daniel_lu@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1638245498066_0.28040021442442553"},"_hasShrinkwrap":false}},"maintainers":[{"name":"daniel_cy_lu","email":"daniel_lu@hotmail.com"}],"description":"contains simple methods to solve future problems(bootcamp project)","homepage":"https://github.com/daniel-cy-lu/lotide#readme","repository":{"type":"git","url":"git+https://github.com/daniel-cy-lu/lotide.git"},"author":{"name":"Daniel Lu"},"bugs":{"url":"https://github.com/daniel-cy-lu/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 @daniel_cy_lu/lotide`\n\n**Require it:**\n\n`const _ = require('@daniel_cy_lu/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(arr)`: takes in an array and return the first element\n* `tail(arr)`: takes in an array and return the elements other than the first one\n* `middle(arr)`: takes in an array and return the middle element\n* `assertArraysEqual(arr1, arr2)`: determine whether two arrays are the same and return either pass or fail\n* `assertEqual(a,b)`: determine whether two primitive-data-type values are the same and return either pass or fail\n* `assertObjectsEqual(obj1, obj2)`: determine whether two objects are the same and return either pass or fail\n* `countLetters(sen)`: return the number of letters, excluding blank space in a sentence as an input\n* `countOnly(allItems, itemsToCount)`: allItems is an object with items to be counted as the keys and number as value. The itemsToCount is an object that could share keys with the first object and boolean value. The function will return the number counted for the shared keys that has 'true' as value in itemToCount\n* `eqArrays(arr1, arr2)`: determine whether two arrays are the same and return either true or false\n* `eqObjects(obj1, obj2)`: determine whether two objects are the same and return either true or false\n* `findKey(obj, callback)`: the function will loop through the object and perform the callback function using each key and only return the first true condition \n* `findKeyByValue(obj,key)`: return the key if it matches one in the object argument\n* `letterPositions(sen)`: returns all the indexes of each letter that appear in the sentence input\n* `map(arr, callback)`: return a new array which is the mutated value of each element in the original array based on the callback function\n* `takeUntil(arr, val)`: return the part of array from the start until the value argument\n* `without(arr1, arr2)`: return the array1 without the contains in array2","readmeFilename":"README.md"}