Comments (3)
I thought about adding this, but since there is an easy native replacement I decided against it.
const noop = () => {}
from moderndash.
I understand.
However I think it is "mandatory" to add noop
because it is already a "standard"
- https://github.com/search?l=JavaScript&q=noop+import+lodash&type=Code => 279,154 code results
- https://github.com/search?l=TypeScript&q=noop+import+lodash&type=Code => 13,468 code results
- My personal experience: all front projects I've seen in the last 2 companies I worked for used
import { noop } from 'lodash'
(not introduced by me, already in place before I joined)
I believe most JS developers are familiar with noop
and expect it from a library like lodash or similar.
from moderndash.
@tkrotoff Interesting points 🤔
If there is more demand for it, I will add it.
Maybe I will do a category in github discussions. So people can upvote functions they want to see included.
I want to avoid situations of cluttered documentation like we have in https://stdlib.io/docs/api/latest. Where you can't find the functions you actually need quickly.
One of the packages goals is to encourage native JS where possible. That is why I am reluctant to add it right away.
from moderndash.
Related Issues (20)
- Add possibility to wait until the queue finishes HOT 3
- Non-constructing `object.set`
- Shouldn't `hotscript` be in the main dependencies since it's imported in `dist/index.d.ts`? HOT 2
- Bundle hotscript types HOT 1
- Feature request - `mergeWith` HOT 3
- Feature request: debounce.pending() HOT 2
- Feature request - `deepFreeze` HOT 1
- Return the result of the last `throttle` invocation HOT 3
- Feature request - `curry`
- PlainObject not working with Interfaces HOT 3
- Feature request - `truncate` HOT 2
- Deprecate array `group` HOT 2
- Feature request - Array/concat HOT 5
- Feature request - clone HOT 3
- Error: Unexpected token '??=' HOT 2
- splitWordsRegex fails on iOS 16 HOT 6
- T39 Decorators
- Switch to mutations instead of copy HOT 1
- `takeRightWhile` | Improve performance HOT 1
- `set` | Incorrect type if value is replaced by array
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moderndash.