Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8865689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:34:43+00:00 2026-06-14T16:34:43+00:00

Just getting started with Node.js and would like to try out Underscore to test

  • 0

Just getting started with Node.js and would like to try out Underscore to test out some ideas.

I’ve read post here, here and lastly here.

I get why using the _ does not work in a REPL. But neither does reassigning the underscore object.

For instance,

 > var _u = require('underscore');
   { _: 
    { [Function]
      VERSION: '1.0.2',
      forEach: [Function],
      map: [Function],
      reduce: [Function],
      reduceRight: [Function],
      detect: [Function],
      ...feeling good about myself...

 > _u.uniq([1,2,3,4,4,44]);

Returns:

TypeError: Object #<Object> has no method 'uniq'
at repl:1:4
at REPLServer.self.eval (repl.js:109:21)
at rli.on.self.bufferedCmd (repl.js:258:20)
at REPLServer.self.eval (repl.js:116:5)
at Interface.<anonymous> (repl.js:248:12)
at Interface.EventEmitter.emit (events.js:96:17)
at Interface._onLine (readline.js:200:10)
at Interface._line (readline.js:518:8)
at Interface._ttyWrite (readline.js:736:14)
at ReadStream.onkeypress (readline.js:97:10)

Any ideas on why this could not work besides rename the global underscore object? The version assigned to _u is 1.0.2.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:34:45+00:00Added an answer on June 14, 2026 at 4:34 pm

    1.0.2 has got to be pretty old. 1.4.2 is the current version. I’d bet that this method simply doesn’t exist on that version of the library.

    Time to upgrade.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just getting started with Dropwizard 0.4.0, and I would like some help with
just getting started with Rails, I would like to consume a webservice (using ActiveResource)
Just getting started with C++ here. I am working on OSX with Eclipse CDT.
I'm just getting started with LINQ, and I'm having some troubles. Say I wanted
Just getting started here and cannot seem to get this very basic thing working.
Just getting started with jQuery, and I've had some success so far. I've created
Just getting started with PowerShell. I was running DOS .bat files in my post
I'm just getting started on Prototypes, and I'm trying to test different things on
I'm just getting started with knockout.js. I have a foreach binding like this, which
I've just started getting into Node.js. I come from a PHP background, so I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.