This function synchronously reads data from disk for each invocation. Such behavior is intentional and so is the avoidance of require. We assume that invocations are infrequent, and we want to avoid the require cache. This means that we allow data to be garbage collected and a user is responsible for explicitly caching data.
Returns
Array<string>
states
Example
var data = names();
// returns [ 'Alabama', 'Alaska', 'Arizona', 'Arkansas', ... ]
Returns a list of US state names in alphabetical order.
Notes
require
. We assume that invocations are infrequent, and we want to avoid therequire
cache. This means that we allow data to be garbage collected and a user is responsible for explicitly caching data.