Friday, 29 July 2016

Javascript Utility Functions


As a developer the very first thing to start with Netsuite is to get a Dev account access and explore the object models and navigation. Its always recommended as a developer to have a Utility Script in hand, while doing daily to daily development activities, as it not only helps you save your time but also let your code to be very precise and short. Below are some general cases I usually came across during my daily to daily development.

How to get URL query params :​


If you're trying to match 'URL' from a page the visitor is currently on, you would probably use the method like this:



Javascript Monetary calculation & roundings :













javascript Monetary Notation based on digits :​




javascript function check the entered key is number :​










Remove duplicates using javascript :​
















Merge two JSON Objects :














Naive method: Remove an array of keys from Object :













Go to previous page :





No comments:

Post a Comment