You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should integrate underscore string into underscore?
When you need using functions from _.string for _.js chaining
_.mixin(s.exports());
But I think you should do if using both because chaining with _.string will soon occur. Unless you want keep _.string independently and no chaining with _.string.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.invoke(list, methodName, *arguments)methodName is string, is function belongs to object object.methodName(...). return result as _.map()
_.each(list, iteratee, [context])iteratee is not string (a function name). iteratee is called for each object/item as its parameter iteratee(object). return no result
_.map(list, iteratee, [context]) like _.each(), apply iteratee for each item iteratee(object), but difference is that return result
Why do I need to write posts/notes? How do I increase my code speed?
Because they help me write code faster. You will wonder that why is faster? They take me more time to do another thing instead of focus writing code. I though it is as you are thinking. Let me sharing my experience about it.
I have many experience years about programming, almost problems I can solve them by using my knowledge, experience and google, ofcourse. But my solving issues speed is not fast as I expected even I solved them before. One year ago, I realized my problem from recent projects and find down why. There are points I found:
1. Don't keep any solution somewhere.
What action do I face a problem/issue? Check the issue I have met or not