stevezhu / meteor-lodash Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://atmospherejs.com/stevezhu/lodash
License: Other
Home Page: https://atmospherejs.com/stevezhu/lodash
License: Other
Hi @stevezhu. Please could you update to the lastest version of lodash?
Thanks
I found if underscore is not explicitly added to the app ($ meteor add underscore
) this package does not work.
I'm trying to update stevezhu:lodash version 3.10.1 to 4.5.1 on Meteor 1.2.1 running on Windows 10 Pro 64-bit.
meteor update stevezhu:lodash
reports The specified packages are at their latest compatible versions.
Why is it that when I:
_ = lodash;
console.log('version',_.VERSION);
console.log('version',lodash.VERSION);
It returns: version 2.4.1
Although the lodash.js file shows:
var VERSION = '3.10.1';
https://github.com/stevezhu/meteor-lodash/blob/master/lodash.js#L16
It's already onstage.
Right now I have one init.js file in each package with a single _ = lodash line.
I realize the limitations due to meteor core underscore dependency, but the readme clearly says when added in packages, the _ would become lodash.
Is this some trick or am I doing something wrong?
Example:
This particular piece of code throws a huge
TypeError: Array.prototype.map callback must be a function
error at compile time, since _ is still underscore and it doesn't support passing keys to a map function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.