Skip to content

John-David Dalton jdalton

Organizations

BestieJS Modules Lo-Dash JavaScript Library
John-David Dalton

Keep in mind Lo-Dash still allows devs to customize _.indexOf customize matching in methods like _.unique, by going to the bare loop it leaves that…

John-David Dalton
  • John-David Dalton 87da47a
    Remove link to master source in readme as lines change.
jdalton deleted branch cleanup at borisdiakur/n_
jdalton commented on issue jashkenas/underscore#1739
John-David Dalton

Yap, it would also align closer to ES6 Object.assign.

John-David Dalton
  • John-David Dalton b1c64bb
    Ensure `_.escape`, `_.escapeRegExp`, & `_.unescape` can replacing mul…
jdalton opened issue borisdiakur/n_#5
John-David Dalton
Add unit tests.
jdalton opened pull request borisdiakur/n_#4
John-David Dalton
Simplfiy the package.json by using supported shorthand.
1 commit with 5 additions and 23 deletions
John-David Dalton
  • John-David Dalton 110e47c
    Simplfiy the package.json by using supported shorthand.
jdalton opened pull request borisdiakur/n_#3
John-David Dalton
Reduce code, use more of the existing variables and lodash sugar.
1 commit with 25 additions and 24 deletions
jdalton created branch package at borisdiakur/n_
jdalton created branch cleanup at borisdiakur/n_
jdalton commented on commit borisdiakur/n_@54289d6ff5
John-David Dalton

The comment has since been removed.

jdalton commented on commit borisdiakur/n_@54289d6ff5
John-David Dalton

The comment has since been removed.

jdalton commented on commit borisdiakur/n_@54289d6ff5
John-David Dalton

Looks like it's all the way back to 0.2.0 https://github.com/joyent/node/blob/v0.2/lib/repl.js Though 0.8 is a reasonable cut off.

jdalton opened issue borisdiakur/n_#2
John-David Dalton
Add note about `_` redirect to `$` in readme.
jdalton commented on commit borisdiakur/n_@62a20caf44
John-David Dalton

minor comment nit (the wiring bit was removed because the wiring can't actually be broken). So I just changed the comment to // redirect repl chan…

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

Rock! Also there was the added _.each(repl._builtinLibs,... bit.

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

I've updated the snippet again to catch another case where _ is overwritten.

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

Sure!

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

I've updated the example snippet.

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

Ok fixed all issues. Ran it locally to confirm \o/

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

Minor biff again. It looks like if there's only 1 event handler on an event type the _events[type] is not an array, instead it's the single event l…

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

Ok I found it. In current stable it's on the rli property. On edge they alias rli to this so they check can be: var events = server.rli._events.line;

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

This will require hunting down where that event handler is assigned ;D

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

I was writing pseudo code so there may be a few bumps to iron out. Log what server._events contains it looked like from the initialization of the s…

jdalton commented on issue atom/underscore-plus#8
John-David Dalton

While Underscore doesn't officially support it they don't stop devs from attempting it. Lo-Dash on the other hand explicitly avoids iterating over …

jdalton commented on issue atom/underscore-plus#8
John-David Dalton

There's a good reason for that, Underscore doesn't support _.isEqual on DOM elements. It's been known to lockup or throw errors depending on browser.

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

Updated snippet to use Object.defineProperty with the goal of allowing devs to explicitly overwrite _ if they want to. This keeps a state of currVal

jdalton commented on issue borisdiakur/n_#1
John-David Dalton

Something like: var replServer = require('repl').start({ prompt: "n_ > ", }); // create a new pristine `lodash` instance replServer.context._ = req…

Something went wrong with that request. Please try again.