Used as an alternative for an object without prototype.
With nodejs:
Create your project using this package.json. After downloaded, run npm install
and start writing your application:
In the browser:
For browser-usage, ITSA has a predefined loaderfiles. Once included, a global ITSA
object with default features is available. For customized loaderfiles, read: Customized build.
<script src="/itsabuild-min.js"></script>
An HashMap is an very plain object without a prototype. Therefore it is a clean
object: it lacks all Object.prototype methods and properties. This can be usefull when you want the object just being used as a quick reference-container. This module exports a function named: createMap
, which is available on ITSA
as ITSA.createHashMap
.
var reservedWords = ITSA.createHashMap(),
check;
reservedWords.new = true;
reservedWords.arguments = true;
reservedWords.boolean = true;
check = 'arguments';
if (reservedWords[check]) {
alert('You cannot use '+check+' --> it is a reserved word');
}
var reservedWords = ITSA.createHashMap({
new: true,
arguments: true,
boolean: true
}),
check;
check = 'arguments';
if (reservedWords[check]) {
alert('You cannot use '+check+' --> it is a reserved word');
}
Table of Contents