Dart – Set

Set A set is an unordered collection of values. We can’t get the values by their index values as they are unordered. Values in set are unique i.e. they can’t be repeated. Creating a Set using a constructor: Creating a Set using List Inserting elements in Set

Published
Categorized as Dart Tagged

Dart – List

List A list is an array of elements arranged in an ordered sequence. There are two types of List: Fixed-Length List Growable List Fixed-Length List is a list that can’t be changed once initialized whereas the Growable list is dynamic in nature. Fixed-length List Creating a Fixed-length List The indexing value start with 0 and end with listOfLength-1 .… Continue reading Dart – List

Published
Categorized as Dart Tagged

Dart – Iterable

Iterable Iterable is an extract class, it can’t de instantiate directly. An Iterable of string and int The difference with List and Iterable is that that element in the list can be accessed with their index value using [] operator while in Iterable value can’t be accessed using [] operator. If we run the above program. We get the… Continue reading Dart – Iterable

Published
Categorized as Dart Tagged

4 JavaScript Features in ES2023 That You Should Know

1. Array.findLast() and Array.findLastIndex() First up is the “Array find from last” feature, proposed by Wenlu Wang. It introduces two new methods for Array and TypedArray objects: findLast() and findLastIndex(). These methods function similarly to their existing counterparts (find() and findIndex()), but, as the names suggest, they start searching from the end of the array rather than the beginning. This… Continue reading 4 JavaScript Features in ES2023 That You Should Know

8 JavaScript Features in ES2019 That You Should Know

1. Array.prototype.{flat,flatMap} Array.prototype.flat() proposed to flatten arrays recursively up to the specified depth and returns a new array. Syntax: Array.prototype.flat(depth)depth — Default value 1, Use Infinity to flatten all nested arrays. Array.prototype.flatMap() maps each element using a mapping function and flattens the result into a new array. It’s identical to the map operation followed by a flat of depth 1. Syntax: Array.prototype.flatMap(callback)callback: function that produces an element of the new Array.… Continue reading 8 JavaScript Features in ES2019 That You Should Know

7 New JavaScript Features in ES2022 That You Should Know

1. RegExp match indices By using regular expressions, we can search for patterns in strings. Regexp.exec and String.matchAll are two methods used in JavaScript to retrieve a list of matches. Both return the matched substrings; the initial input string; the index in the input where the match was found; and the group’s object, consisting of substrings for any named… Continue reading 7 New JavaScript Features in ES2022 That You Should Know

10 New JavaScript Features in ES2020 That You Should Know

#1: BigInt BigInt, one of the most anticipated features in JavaScript, is finally here. It actually allows developers to have much greater integer representation in their JS code for data processing for data handling. At the moment the maximum number you can store as an integer in JavaScript is pow(2, 53) – 1 . But BigInt actually… Continue reading 10 New JavaScript Features in ES2020 That You Should Know

A compare function should be provided when using “Array.prototype.sort()”

The default sort order is alphabetic, rather than numeric, regardless of the types in the array. Specifically, even if an array contains only numbers, all values in it will be converted to strings and sorted lexicographically, for an order like this: 1, 15, 2, 20, 5. Even to sort strings, the default sort order may… Continue reading A compare function should be provided when using “Array.prototype.sort()”

Transaction line Items recommended Limits

The below is a guide regarding transaction line items recommended limits: Transactions submitted through the user interface: 500 lines per transaction Transactions submitted CSV import or web services: 1000 lines per transaction Journal Entries submitted through the user interface or web services: 1000 lines Journal Entries submitted through CSV Import: 10,000 lines These recommended limits assume… Continue reading Transaction line Items recommended Limits