Do we have any JS library for NetSuite? I am famil...
# general
n
Do we have any JS library for NetSuite? I am familiar with NFT but any thing in JS?
s
you can use many JS libs with SuiteScript - commonly used ones are
lodash
and
moment
indeed, one of the biggest benefits of NFT is being able to more fully and directly leverage
lodash
functions, but
lodash
itself works fine in SuiteScript as a library. Most any AMD compatible library which doesn't depend on NodeJS or Browser specifics can work in NS.
n
@stalbert I am not talking about the lodash and moment. Perhaps my question was not clear. I am looking for something similar to NFT but on JS, not TS.
s
oh. Well there's no reason you can't use NFT from javascript - the only wrinkle that comes to mind is you'd have to look at existing data recordtype definitions (in JS) and follow the same pattern when defining your custom fields and so forth. However, with TS being a superset of JS I have yet to hear a compelling reason not to use TS. I'd be curious as to your motivations to stick with JS.
n
I have avoided uses TS back then it was the "hype". I believe there is no need to use TS since it is nothing but JS under the hood.
s
interesting take, but I respect that. I can't imagine going back to plain JS given all the benefit I enjoy from TS.
n
I am weighing the options of developing my own library and giving NFT a shot may be it change my perspective if it improves the productivity.
what benefits do you enjoy from TS? @stalbert If you can share a few that will be great.
s
would be easier to screenshare/show than to type out many things
n
that's understandable.
s
in brief, a coding productivity boost, reduction in defects, and easier to understand/maintain code.
👍 1