About 113,000 results
Open links in new tab
  1. How do I write an extension method in JavaScript?

    214 JavaScript doesn't have an exact analogue for C#'s extension methods. JavaScript and C# are quite different languages. The nearest similar thing is to modify the prototype object of all …

  2. Is there a way to create a function from a string with javascript ...

    Oct 4, 2011 · If you have a function expression that is in string form and you want to make it a function, then you need to include a return statement in the string you pass to new Function.

  3. How do I make the first letter of a string uppercase in JavaScript?

    Jun 22, 2009 · } Some other answers modify String.prototype (this answer used to as well), but I would advise against this now due to maintainability (hard to find out where the function is …

  4. Simple (non-secure) hash function for JavaScript? [duplicate]

    May 25, 2011 · Possible Duplicate: Generate a Hash from string in Javascript/jQuery Can anyone suggest a simple (i.e. tens of lines of code, not hundreds of lines) hash function written in …

  5. How to turn a String into a JavaScript function call?

    In javascript, object members can be access with a string the same way you do with an array. Assuming your function is declared in the global scope, it become a function in the window …

  6. Passing string parameter in JavaScript function - Stack Overflow

    Aug 12, 2015 · In your JavaScript, grab the button using its ID, assign the function to the button's click event, and use the function to display the button's data-name attribute.

  7. javascript - How to reverse a string without using any built-in ...

    I want to reverse a string without using any inbuilt function, and I want it to change the original string itself but it doesn't work well. The language is Javascript.

  8. javascript - Converting a string with spaces into camel case - Stack ...

    Mar 19, 2019 · How can I convert a string into camel case using javascript regex? EquipmentClass name or Equipment className or equipment class name or Equipment …

  9. is there any builtin javascript string hash function in newest …

    When I need simple client side hashing without external libraries I use the browsers' built in atob() and btoa() functions. window.btoa () creates a base-64 encoded ASCII string from a "string" of …

  10. Optimum way to compare strings in JavaScript? - Stack Overflow

    I am trying to optimize a function which does binary search of strings in JavaScript. Binary search requires you to know whether the key is == the pivot or < the pivot. But this requires two s...