{"_id":"@diegojcastro/lotide","_rev":"2-6d29c3a663467bf173c470f500a61484","name":"@diegojcastro/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@diegojcastro/lotide","version":"1.0.0","description":"A collection of simple functions to interact with arrays and verify object equality.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/diegojcastro/lotide.git"},"author":{"name":"Diego Castro","email":"diegojcr4@gmail.com","url":"https://github.com/diegojcastro"},"license":"ISC","bugs":{"url":"https://github.com/diegojcastro/lotide/issues"},"homepage":"https://github.com/diegojcastro/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.0"},"gitHead":"f34b2de9be27bdf72974e7e19e2a187e2267acb7","_id":"@diegojcastro/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-i5+Cvp8ujEoAuTLkUHb/UeSvUWr6lXHV/+wG8a83Bd6rMBUCYggxKKGMba3XSXwfWVjGLPZujglCxYxqySDU5w==","shasum":"5389a65f7afab4dfb3f81dda262fcdb233571eb2","tarball":"https://registry.npmjs.org/@diegojcastro/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":20138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhI+xNCRA9TVsSAnZWagAAx7cP/1SxodwBbhp3H3sMVfZD\nF+9YQnlHSJiTRW5WVEW3lQhgUjtkgcXBVsZW5JnJRowp3lPNq+e7FRMTWO81\nmFQYgYpIoDn23SRKnPbOd8pfDO4FXrLrZwNLh0o5PtT1NTWKum70KVo7+x32\nSgYnRFKvVFHmm37a1afNR6YT/0psQIPOD860OldtbSBA5ksrHLD7ZCTjwvKW\nCavwQs5TDEZDKbcUg3tT8fCukpnbnMqjNfDFLB+t2UpB4jVJOF1/nZZdjc7N\nh2y6ObGz2eQx/irZXGbsgUzetePyXXYquSL4kNtjr2YxHrc2WlMiyoRktGA2\n4V+JWwAT5SCtAzTTZFb+3kCw3LDEbSlWktDGXMjKZKJMLcOVO6VcZvbEYzZO\ntRl6rxVmxNSvXAURo+Mn78bQF+BQK9odnPfRsguvxr84Dv7lfTjfrbi6E+sM\n+UeW7Mol3F41ovtU3OnHB/xcSx5G7hRDPPTieUU9IUZxuVzDcnG7ikHSuPzo\nk0aruYrA9ErgKjgj5wxwSIrbb5k495Dwhbsg9aP2Wk4r/hRkfFAzCCTCqeTE\n/QfahRZGT2whicb+56w/1CWb5fw9HZ7nWFFklFlquHeK28ZCvsOVBb+vhugr\nan/Go0lUx8C32M2xvkDM/yhUNfs/7IeGZXzajc8m27fXm56X1MvyWRaVur1/\nRaUZ\r\n=F57b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBR9UR3UlZbrZRAQnltAAtFquTglsvRBjMnX9Gz4jpzAiABWXKVvIS1clgbCJCjyu5VTxvcggICJDyxg1JZ4Sx+2A=="}]},"_npmUser":{"name":"diegojcastro","email":"diegojcr4@gmail.com"},"maintainers":[{"name":"diegojcastro","email":"diegojcr4@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1629744205283_0.5084465176980728"},"_hasShrinkwrap":false},"1.0.1":{"name":"@diegojcastro/lotide","version":"1.0.1","description":"A collection of simple functions to interact with arrays and verify object equality.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/diegojcastro/lotide.git"},"author":{"name":"Diego Castro","email":"diegojcr4@gmail.com","url":"https://github.com/diegojcastro"},"license":"ISC","bugs":{"url":"https://github.com/diegojcastro/lotide/issues"},"homepage":"https://github.com/diegojcastro/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.0"},"gitHead":"c65d5382007ca03518323d4ce97a270576a4cf1d","_id":"@diegojcastro/lotide@1.0.1","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-6Ih7wN5OlElXFlPAiLfm+PgZxdxkQDKXgqXwzp3Yc/sg5ReL6zEPAmY2sTMWVok6q4n4QwG7U+QoAFmtLQJIDw==","shasum":"45d707476d9932960069ba641b7f669748a95b6b","tarball":"https://registry.npmjs.org/@diegojcastro/lotide/-/lotide-1.0.1.tgz","fileCount":31,"unpackedSize":21331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJOvWCRA9TVsSAnZWagAAiXwP/1mc58nFPwaH2XGHX5jk\nQG5mnG84UPMVTSLJBisaiVkUbo85ij3Q5Z9e+HB+yJBBx20/I4pM6q2Ph/Fs\nI2AAkMYxasLJ4CCGYj+TJfTNEGXCVKEkbz1OrlS5S+GSH4hMhrlnwDFBbo9S\nc/PAWEbtYRwMOzNyhBlaDAA0WomeeWSqInSucw3WPTLYpr0nuyE7Bi5xXSvn\ndAv7nP05O7cpnMGcXQtG0D4nG6J9FSSm0iT8XUIT+RSEuuPueEFe9rFlRPJE\nYUNUKjy9nci/vXSu1is6tUVUbHwYY1nu6lQXr1H8mcckFWENXZKIhS97FWgX\nW0h+WmPIPFWePCc4MQw1B0dyv9/4JV0FIV3XxzthTPiRaEP190PRjOtaRha8\nw45IAXkAFHkdvUcXxfgAZKU4sMPr9KM4pq/FvwIT/JVUwy9/YA5gtMNandwg\nsotH3OPa+DsVFVeX4vt78Tv+SUglpd2bn2FxB6dZuWU27eEJ3ji929q1xN3k\nYBG0Mq2MRmhMqbGqfpT++nhFFVxR//DHCEvxzejWwe7g9vX71YDD4jm/QbYY\na+efN8/lzV/8dkheteReYg3CAXPtC8HsuRNgOqbYpJVSQ3wSFYWNQPlFai19\nndTAfiC3gaw7JdplVm9o8k0c3QN3IsVyBPVC9Ly4YPR+lTxAmriT31cXuuVJ\n06sn\r\n=o4nA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDJucKHPsYUP+F///wf7RfTqL3REWGQs8zM/Pxy1NMiAiBJG6f39ab5kVOrgBl7+Mpk63HJfyZLsXwMUqTOLvimUg=="}]},"_npmUser":{"name":"diegojcastro","email":"diegojcr4@gmail.com"},"maintainers":[{"name":"diegojcastro","email":"diegojcr4@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1629809621978_0.09323076750111015"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-23T18:43:25.241Z","1.0.0":"2021-08-23T18:43:25.403Z","modified":"2022-04-05T04:25:18.180Z","1.0.1":"2021-08-24T12:53:42.118Z"},"maintainers":[{"name":"diegojcastro","email":"diegojcr4@gmail.com"}],"description":"A collection of simple functions to interact with arrays and verify object equality.","homepage":"https://github.com/diegojcastro/lotide#readme","repository":{"type":"git","url":"git+https://github.com/diegojcastro/lotide.git"},"author":{"name":"Diego Castro","email":"diegojcr4@gmail.com","url":"https://github.com/diegojcastro"},"bugs":{"url":"https://github.com/diegojcastro/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 @diegojcastro/lotide`\n\n**Require it:**\n\n`const _ = require('@diegojcastro/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 element at index 0 of array.\n* `tail(array)`: returns a copy of array with every element except that at index 0. Does not modify original array.\n* `middle(array)`: returns the middle value on array (if odd length) or the middle two values (if even length).\n* `assertEqual(a, b)`: logs a message to console verifying if a and b are equal or not.\n* `eqArrays(a, b)`: returns true if arrays a and b are equal (including subarrays), false if not.\n* `assertArraysEqual(a, b)`: calls eqArrays, then logs to console verifying if a and b are equal or not.\n* `flatten(array)`: returns an un-nested array from a multi-level nested array.\n* `countOnly(source, items)`: returns an object containing keys and counts for each element in items found in source array\n* `letterPositions(source, char)`: returns an array containing the indexes where char is found in source array.\n* `findKeyByValue(source, val)`: returns a string containing the name of the key in source object where val was found.\n* `eqObjects(a, b)`: returns true if objects a and b have identical key,value pairs.","readmeFilename":"README.md"}