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 7129437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:14:33+00:00 2026-05-28T11:14:33+00:00

Why in jQuery core.js isn’t extend defined as like this: jQuery.extend = jQuery.fn.extend =

  • 0

Why in jQuery core.js isn’t extend defined as like this:

jQuery.extend = jQuery.fn.extend = function() {
    ...
}

and not as a prototype like:

jQuery.prototype.extend = jQuery.fn.prototype.extend = function() {
    ...
}

Presumably with the former, objects created from jQuery will not have the extend function.

  • 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-05-28T11:14:34+00:00Added an answer on May 28, 2026 at 11:14 am

    Because jQuery.fn === jQuery.prototype

    It is defined on the prototype. jQuery just decided it would be “cute” to alias the prototype to .fn

    Which is why

    $().extend({ 
        "lulz": "baz" 
    }, { 
        "more-lulz": "no wai" 
    })["more-lulz"] === "no wai"; // true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking in the jQuery core I found the following code convention: nth: function(elem, i,
I'm trying to modify the 'attr' function in the jQuery (V.6.1) core. I have
I am attempting to overwrite a core jQuery event, in this case the keydown
In jQuery core.js, currently, line 260 this.slice( i, +i + 1 ); is the
I discovered a method of extending the core jQuery init function (which is what
my skills with jquery core are not that great, though Ive been working with
I had that question in mind for a long time. Theoretically, jQuery core function
I'm trying to get the jQuery UI sortable plugin to work and I've created
I would like to have a drop down menu with jQuery show and hide
One of the jQuery Core Style Guidelines indicate: All RegExp operations should be done

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.