Comments (2)
[email protected] fixes these issues. I've dropped the strict option requirement and it now gives very similar results to lodash and passes your tests.
Let me know if I missed anything.
from just.
Many thanks for your observations and feedback Grady. Yeah, I made those decisions consciously, knowing that they differ from lodash etc., but believing that was a more accurate interpretation of the camel case definitions I could find.
However I think you're probably right, it would be more practical to make it behave more like lodash etc. as this has become the de facto standard.
Thanks for your suggestion, I'll use it as the basis for a 'fix' (that will become a new major version) and I think I will get rid of the strict option.
I'm a bit under the weather at the moment, but when I'm ready I plan to use you suggestions but with a few changes
- try to include non-english characters in the camel case and splitter regex
- change the camel case tester to expect a lower case letter at the start
- try to make to code more compact for minimal bytes.
Feel free to put up a PR if you get to it first
Thanks again!
from just.
Related Issues (20)
- just-omit only handles root level omissions HOT 4
- Bug: Not loading in NextJS production mode.
- [just-diff] keep the old value in the diff HOT 1
- [Feature] Diff apply only added/updated? HOT 2
- Permutations gives incorrect result for arrays of arrays
- just-safe-set docs do not agree with implementation HOT 2
- [BUG] After `diff(object, master);` - master changed
- [just-rotate-right] Rotate array elements to the right
- [just-omit] webpack import error HOT 3
- just-diff Error when first diff is a complex array mutation
- [just-diff] op type error.I add a new property with an empty string,but the op is replace HOT 1
- Website missing one-line descriptions for each library
- `just-is-empty` function fails to detect symbol properties in objects
- Proposal: `hasOnly` object utility
- safe-set sorting bug
- Types of just-diff and just-diff-apply do not match HOT 1
- `just-standard-deviation` and `just-skewness` require 2 numbers in the array HOT 1
- Could not find a declaration file for module `just-pipe` HOT 1
- flatten with depth=1 is not properly applied to the first element HOT 1
- function just-diff is buggy when dealing with empty objects with no prototype
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 just.