New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

moderndash

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moderndash

A lodash inspired utility framework for ESM/Typescript/ES2020

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
decreased by-76.6%
Maintainers
1
Weekly downloads
 
Created
Source

ModernDash Logo

A Typescript-First utility library inspired by Lodash. Optimized for modern browsers.

✅ ESM ✅ Tree-shakable ✅ Typescript Strict Mode (no any types) ✅ Zero dependencies


Warning This library is still in development and is not ready for production use.

Documentation

The documentation is WIP.

Removed Functions because of trivial native alternatives

Look at You-Dont-Need-Lodash for native replacements.

Array Functions

  • compact
  • concat
  • differenceBy property shorthand
  • drop
  • dropRight
  • fill
  • findIndex
  • findLastIndex
  • first/head
  • flatten
  • flattenDeep
  • flattenDepth
  • fromPairs
  • initial
  • join
  • last
  • lastIndexOf
  • nth
  • without
  • reverse
  • slice
  • sortedIndexOf
  • tail
  • take
  • takeRight
  • without

Collection Functions

  • each/forEach
  • every
  • filter
  • find
  • flatMap
  • includes

String Functions

  • lowerCase
  • trim
  • trimEnd
  • trimStart
  • pad
  • padEnd
  • padStart

Functions are not considered trivial if they:

  • include reduce methods
  • include multiple nested function calls

TODO

  • More unzip tests
  • Check if flatmapdeep, flatmapDepth is included in native flatmap
  • GroupBy Property Shorthand

Might be added later (open for discussion)

  • pull functions (pull, pullAll, pullAllBy, pullAllWith, pullAt)
  • remove
  • sorted functions (sortedIndex, sortedIndexBy, sortedIndexOf, sortedLastIndex, sortedLastIndexBy, sortedLastIndexOf, sortedUniq, sortedUniqBy)
    • if performance is better than native alternatives (testing needed)
  • xor functions (xor, xorBy, xorWith)
  • zipObject, zipObjectDeep
  • forEachRight
  • findLast
  • lowerFirst
  • keyBy

Continue at

  • invokeMap

Keywords

FAQs

Package last updated on 17 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc