{"_id":"@elena_chernikova/lotide","_rev":"1-023b123bd55d015693660ef697f836f0","name":"@elena_chernikova/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@elena_chernikova/lotide","version":"1.0.0","description":"library of small functions","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+ssh://git@github.com/MiArri/lotide.git"},"keywords":["library","function","lotide"],"author":{"name":"Elena Chernikova"},"license":"ISC","bugs":{"url":"https://github.com/MiArri/lotide/issues"},"homepage":"https://github.com/MiArri/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.0"},"gitHead":"fec1df8fca5477563bb22b627810388d7c0009c4","_id":"@elena_chernikova/lotide@1.0.0","_nodeVersion":"12.22.7","_npmVersion":"8.4.0","dist":{"integrity":"sha512-8Y9esAOyQ3M/oyBeKaz19MyJ6JzyshSa7cHTuG1Id1pWVWA9sDFK1CmPRmBRvLKsNErQuBENEvJcE5N+ima+6Q==","shasum":"8ce52736f3c693c6f477212555d4f72b51009427","tarball":"https://registry.npmjs.org/@elena_chernikova/lotide/-/lotide-1.0.0.tgz","fileCount":24,"unpackedSize":14971,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCyD7CRA9TVsSAnZWagAA2QcQAJo25RIW2M/IveaBNYLT\n4NzJSK0fheqFQdXUGTR3dF7JdsdPvO/nuuHsEks+xon4ODwEVg1UpXBHRZ/G\nvuKSID4omxqbOuka1iZRb1cHZnZIyY1zwk41Z7LameFbkCqFH/b3x2G/Mh6r\nYUfUDoGvpbL+mPNQHL7Yua6TEhCYl+hidddYoAXSYTtHYVDUWPjLDTPaxyxs\nN9s0hfM1kFwAIHfivzLlnuV6qUK/3iDZ8CR1lLWhv37t9wnHp9xSf8F82gxl\nB9CHeHT+2HaApImIkAtvYbmm3MLWjfSJ1VwmmbnDtm6Ov1yNnjH9oB21SGfC\n8ZytQfW8fzmDWxfFimX28NM/sWJaOWpDscSO6OFvsVLprUS8Oai14ceQR94b\nTpxV2QM88HM92RIPppRXLtNRHgOAe+j0vyUJsyXdWr8/Xvvo61HIkk4lAuCI\nboFxbhPduaYMwU6DitkwaI13+J419JohtfYC0/adaDk4aS5Cx3YrZQ5Fu5xn\nIpgh26GHL9A/oHuAxLS1asX7PPmZp681MZhJOBNnVaPeywiSiiXeOQu8J+iK\nZDGaYInBVCqQEA26VOu9GV0aIw9XeX8vJQyVLm5DyehGQ9kiIpkSq3IvTRET\noHSyXhRS9dmeIeksMpqWf/QXoLSjI/EmJ2mzaVM5b1l1xvf+rI91U9YFx3mF\no0/L\r\n=oq0j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0INKZlCNH5Kz7+O+pvHM3fF34P1ZL/avs1dGpFe3zdgIhAKDOBKaGiQEVLd/Gsidb4Jl3bsBtWKiHUU3DeDlNWXTZ"}]},"_npmUser":{"name":"elena_chernikova","email":"lena@acvos.com"},"maintainers":[{"name":"elena_chernikova","email":"lena@acvos.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1644896507057_0.17802420637916327"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-15T03:41:46.833Z","1.0.0":"2022-02-15T03:41:47.199Z","modified":"2022-04-05T07:09:28.989Z"},"maintainers":[{"name":"elena_chernikova","email":"lena@acvos.com"}],"description":"library of small functions","homepage":"https://github.com/MiArri/lotide#readme","keywords":["library","function","lotide"],"repository":{"type":"git","url":"git+ssh://git@github.com/MiArri/lotide.git"},"author":{"name":"Elena Chernikova"},"bugs":{"url":"https://github.com/MiArri/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 @elena_chernikova/lotide`\n\n**Require it:**\n\n`const _ = require('@elena_chernikova/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- `function1(head)`: the function returns the first item in the array;\n- `function2(tail)`: the function returns the \"tail\" of an array: everything except for the first item (head) of the provided array;\n- `function3(assertEqual)`: the function compares two values it takes in and print out a message telling us if they match or not;\n- `function4(eqArrays)`: the function compares two arrays;\n- `function5(assertArraysEqual)`: the function for asserting that two arrays are equal;\n- `function6(assertObjectsEqual)`: the function for asserting that two objects are equal;\n- `function7(countOnly)`: the function takes in a collection of items and returns counts for a specific subset of those items;\n- `function8(countLetters)`: the function takes in a sentence (as a string) and then return a count of each of the letters in that sentence;\n- `function9(letterPositions)`: the function returns all the indices (zero-based positions) in the string where each character is found;\n- `function10(findKeyByValue)`: the function takes in an object and a value. It should scan the object and return the first key which contains the given value;\n- `function11(eqObjects)`: the function takes in two objects and returns true or false, based on a perfect match;\n- `function12(findKey)`: the function takes in an object and a callback. It should scan the object and return the first key for which the callback returns a truthy value;\n- `function13(map)`: the function takes in two arguments: an array to map, a callback function. The map function will return a new array based on the results of the callback function;\n- `function14(takeUntil)`: the function takes in two arguments: an array and a callback function. 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- `function15(without)`: the function takes in a source array and a itemsToRemove array. It returns a new array with only those elements from source that are not present in the itemsToRemove array.\n- `function16(middle)`: the function The middle function returns an array with only the middle element(s) of the provided array;\n","readmeFilename":"README.md"}