{"_id":"@abdul589/lotide","_rev":"1-9af7f0ee37b013b68919ec0cb95805fa","name":"@abdul589/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abdul589/lotide","version":"1.0.0","description":"lotide","main":"index.js","directories":{"test":"test"},"dependencies":{"chai":"^4.3.3"},"devDependencies":{"mocha":"^8.3.1"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/abdul5890575/lotide-.git"},"author":{"name":"Abdul Rehman Shaukat"},"license":"ISC","bugs":{"url":"https://github.com/abdul5890575/lotide-/issues"},"homepage":"https://github.com/abdul5890575/lotide-#readme","gitHead":"67e47cb99b536b54d87d8c3bb31f33e181b78d36","_id":"@abdul589/lotide@1.0.0","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-671K4rYy8+S3jVDZJS4ploqRoMVM1Ss0oFkGjNOu31aBcxKYK3ZeSL19gkIbTR5V6xEyT57ihtAqDXrZWFna4A==","shasum":"aa34665e44f90c9243fe6fa83b39ddb5a58642a7","tarball":"https://registry.npmjs.org/@abdul589/lotide/-/lotide-1.0.0.tgz","fileCount":35,"unpackedSize":28036,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRqZyCRA9TVsSAnZWagAAy8MP/3AsBw4k0shkautKUOel\nq53kPWZCka1Z9azpWyDS+Lyi01Efyq8Dc5QNlWYHkcN8CVa5KrzZmk9dka/C\nc+DzjhRoqhF2J4tnVgTJrjh6g0bXagqAi98agIVLXPUld+8W47/tH3nYlnEU\nzCJqV3F3HJpKM08Jn0FdkbWQmHhSpGwcwjQkwVCrrBWCvIJgQaVu3MQAGoyc\nv7e9+bWn4ZtaIKgTzodXDpk4pWjSIbzVDzQSJRw0ABtYtsegHKE5kafGLMpY\n9U/AX0qUwmcO6Aqln4CFE5UeDJQHxL5vUuZtyuLpyKofOYk84FFIglk1NayY\nNJCmioHkX70Z2/yKPk3AHa1rF1HfSurh2hzMNBow9thLD/pWVxzlPX7zkfcU\nI4VVQs+m3extY/O6rxpxC6cXcDmS0SHJ7xeMFJnxdNFEtZJkIqXwwt9ApSCs\nqJh4Oz2Dm9Ud5ON99kRJTJXlIL7L8vYkzDE8Z9+U4DPT7lL7EiFsF6ZNFiyf\nuV8DWrTjlYZK/ORKXI7Sq5vyMJaJhryYoQ9vqi+iTpSaHEy4jZG+vs1gIQfB\nmvtdED5eeChwU67IXXv4qvDlr8nX+eNkFlw9EZNEWKrbmR42YOpye+5kL37v\nsg5EeG6ZwybjHkenzIq9wwvfdPny78KGP5B/3Ja9Qlcxt2gzP7UXQsZKPRuM\n08Fl\r\n=LS2I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAIx++nxNJy2LWavPXMZ5/ZyCa1zSxW7pc5qmQHBEZ6sAiEAx5/oFvAeEGUC0WthHS1eOCSA27Ft8PjNXK9c8XI4mkI="}]},"_npmUser":{"name":"abdul589","email":"abdulrehman.shoukat@gmail.com"},"maintainers":[{"name":"abdul589","email":"abdulrehman.shoukat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1615242866515_0.9459118420580928"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-08T22:34:26.477Z","1.0.0":"2021-03-08T22:34:26.645Z","modified":"2022-04-04T10:58:32.273Z"},"maintainers":[{"name":"abdul589","email":"abdulrehman.shoukat@gmail.com"}],"description":"lotide","homepage":"https://github.com/abdul5890575/lotide-#readme","repository":{"type":"git","url":"git+https://github.com/abdul5890575/lotide-.git"},"author":{"name":"Abdul Rehman Shaukat"},"bugs":{"url":"https://github.com/abdul5890575/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 @abdul589/lotide`\n\n**Require it:**\n\n`const _ = require('@abdul589/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 element of the array\n* `tail(array)`: Returns all the elements of the array except first\n* `middle(array)`: Gives middle elements of an array, if even gives both\n* `without(array1, array2)`: Returns Array with that excludes the second array elements\n* `findKey(object, callback)`: Returns key for the object value according to callback condition we provide\n* `map(array, callback)`: Maps new array according to the callback condition\n* `takeUntil(array, callback)`: takes all the values of array and store it in a new array until callback condition is met\n* `letterPositions(sentence)`: Returns an object with position of each letter in the sentence\n* `findKeyByValue(object, value)`: Finds first key of object by value\n* `eqObjects(object1, object2)`: Compares two objects \n* `eqArrays(array1, array2)`: Checks if 2 Arrays are equal\n* `countOnly(allItems, itemsToCount)`: Compares and returns an object with the number of times an element occurs in an object from a given list\n* `countLetters(string)`: Count the occurance of letter in a string and returns an object\n* `assertEqual(actual, expected)`: Checks and returns a boolean depending on if the two arguments match\n* `assertObjectsEqual(object1, object2)`: Compares two object\n* `assertArraysEqual(array1, array2)`: Compares two arrays\n","readmeFilename":"README.md"}