4 years ago by rijo

What is the most efficient way to check if a string is a palindrome? . . .

javascriptstringspalindrome
  • 1
  • 0
  • 868
4 years ago by jsRant

What is the most reliable way to test if a variable is NaN? . . .

javascriptnan
  • 0
  • 0
  • 707
4 years ago by jsRant

Sample: myArray = [1, 2, 4, 10, 20,100] How to find second largest value without sorting the array or latering its contents? . . .

javascriptarraysecond-largest
  • 3
  • 1
  • 14315
4 years ago by jsRant

I have var arr = [     {        name: 'a',        value: 1    },    {  &nb . . .

javascriptarrayobjectsfor-of
  • 1
  • 0
  • 787
4 years ago by Fischer

I am using Socialite2.0 with Laravel5.3 Facebook and Google authentication are working well. With twitter, it fails because twitter is not sending back email id. The createOrGetUser() method is . . .

socialitetwitterlaravelauthenticationoauth1
  • 1
  • 0
  • 1854
4 years ago by Mark

I'm using Visual Studio 2015 Community edition to create a Windows IoT background application on VB.NET. When I try to debug with watch on certain variables, i see the message "To inspect the native . . .

windows-iotvs-2015vbnet
  • 1
  • 0
  • 5800
4 years ago by jsRant

I know we can use Math.min to do this .apply() on Math function makes it accept unlimited arguments Array.min = function( array ){ return Math.min.apply( Math, array ); }; How to do this with . . .

javascriptarray
  • 2
  • 1
  • 766
4 years ago by jsRant

When should I use eval() in Javascript ? What are the pros and cons of using eval() ? . . .

javascript
  • 1
  • 0
  • 614
4 years ago by jsRant

Some of the codebase that I am working on has scripts starting with ; and ending with (); What is the purpose of this? . . .

javascript
  • 0
  • 0
  • 621
4 years ago by jsRant

Some of the javascript codebase that I am working on has  "use strict"; What is the use of this? . . .

javascriptuse-strict
  • 2
  • 0
  • 996
4 years ago by josh

Hi, I have multiple tinyMCE instances like  <script src="//cdn.tinymce.com/4/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({ selector: '#my . . .

tinymcejavascriptmultiple-instancesplugins
  • 1
  • 0
  • 1010
4 years ago by Binoy

I have a html table like below No Item Name Quantity Price 1 Abcd 12 10 2 decf 5 15 3 xyz 20 10 . . .

cssauto-numbercss3
  • 2
  • 0
  • 2102
4 years ago by Binoy

I have a xml sitemap file which contains all site urls like this   urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc . . .

xmlhtmlsitemap
  • 0
  • 0
  • 1296
4 years ago by dig_abacus

Given an integer value x, how to search a linked list and delete all nodes with data value greater than x? How to optimally do this in Javascript?Update on 2016-11-17I am implementing the list in jav . . .

javascriptlinked-listsearchremove
  • 7
  • 0
  • 1261
4 years ago by josh

There is an array of objects with a string attribute called name and a number attribute called age.  arr = [ {name: "abba", age: 23}, {name: "lovely", age: 23}, {name: "vincent", age: 5}, {name: . . .

sortingjavascriptjson
  • 3
  • 0
  • 734