npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@coconuttt/lotide

v1.0.1

Published

a clone of lodash library for learning purpose of the bootcamp

Downloads

6

Readme

A Lodash library dumber clone

Status
🦖 - codes are king of the jungle (max improvement of my abilities)
👾 - codes need a bit of touch up to be fab
🔥 - codes are in crisis or I don't know why but it runs

Function Files

  1. head - return the 1st element of an array | 🦖
  2. middle - return an array of the middle value of an array |
  3. tail - return everything behind the head | 👾
  4. map - self-implemented map (return an array results) | 👾
  5. takeUntil - slice the array until meet the condition to stop and return an array of those elements | 🦖
  6. without - return a new array with unwanted elements are removed (not support nested array as an elements)| 🦖
  7. countOnly - return an obj with the numbers of appearances of the letter in the string | 🦖
  8. countLetters - return an obj of the appearance of the letter in the string | 👾
  9. letterPositions - return an obj of the position of letters in the string | 👾
  10. findKey - using callback to improve
  11. findKeyByValue - return the key that match the value in the obj | 🦖
  12. eqArrays - check === of 2 arrays (not support nested array as an elements) and return true/false | 👾
  13. eqObjects - check === of 2 objects and return true/false | 🔥 not return correct output

Test Files

Assert functions

  1. assertEqual - console.log the message of test cases for 2 values | 🦖
  2. assertArraysEqual - console.log the message of test cases for 2 arrays | 🦖
  3. assertObjectsEqual - console.log the message of test cases for 2 objectst | 🦖

Test cases

To run all 'chai' tests: npm test To run specific test: npm test test\test_file_name 17. headTest - test cases for head

  1. middleTest - test cases for middle
  2. tailTest - test cases for tail
  3. mapTest - test cases for map
  4. takeUntilTest - test cases for takeUntil
  5. withoutTest - test cases for without
  6. countOnlyTest - test cases for countOnly
  7. countLettersTest - test cases for countLetters
  8. letterPositionTest - test cases for letterPosition
  9. findKeyTest - test cases for findKey
  10. findKeyByValueTest - test cases for findKeyByValue
  11. eqArraysTest - test cases for eqArray
  12. eqObjectsTest - test cases for eqObjects
  13. assertArraysEqualTest - test cases for assertArraysEqual
  14. assertObjectsEqualTest - test cases for assertObjectsEqual

For exporting all Lotide functions

  1. index - files to return an object contains entire Lotide functions