git ssb

0+

wanderer🌟 / referenceMap



Commit 41ded6aabd6fa84c1a968c7d48defe3964a969e1

updated readme

Signed-off-by: wanderer <mjbecze@gmail.com>
wanderer committed on 8/16/2017, 2:06:33 AM
Parent: e1f2c200e1e82a761064a31fb0aebf800a54e6ea

Files changed

README.mdchanged
README.mdView
@@ -13,15 +13,15 @@
1313 # API
1414
1515 ## constructor
1616
17-[index.js:5-7](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/index.js#L5-L7 "Source code on GitHub")
17 +[index.js:5-7](https://github.com/wanderer/referanceMap/blob/e1f2c200e1e82a761064a31fb0aebf800a54e6ea/index.js#L5-L7 "Source code on GitHub")
1818
1919 Handle mapping arbitary JS object to ints
2020
2121 ## add
2222
23-[index.js:15-17](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/index.js#L15-L17 "Source code on GitHub")
23 +[index.js:15-17](https://github.com/wanderer/referanceMap/blob/e1f2c200e1e82a761064a31fb0aebf800a54e6ea/index.js#L15-L17 "Source code on GitHub")
2424
2525 Adds an object to the referance map returning an int to be used as a
2626 referance
2727
@@ -32,9 +32,9 @@
3232 Returns **integer**
3333
3434 ## get
3535
36-[index.js:24-30](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/index.js#L24-L30 "Source code on GitHub")
36 +[index.js:24-30](https://github.com/wanderer/referanceMap/blob/e1f2c200e1e82a761064a31fb0aebf800a54e6ea/index.js#L24-L30 "Source code on GitHub")
3737
3838 gets a POJO given a refernce as an int
3939
4040 **Parameters**
@@ -44,9 +44,9 @@
4444 Returns **any**
4545
4646 ## delete
4747
48-[index.js:37-39](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/index.js#L37-L39 "Source code on GitHub")
48 +[index.js:37-39](https://github.com/wanderer/referanceMap/blob/e1f2c200e1e82a761064a31fb0aebf800a54e6ea/index.js#L37-L39 "Source code on GitHub")
4949
5050 deletes an object given a referance as an int
5151
5252 **Parameters**
@@ -57,18 +57,30 @@
5757 Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** whether or not the object was deleted
5858
5959 ## clear
6060
61-[index.js:44-46](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/index.js#L44-L46 "Source code on GitHub")
61 +[index.js:44-46](https://github.com/wanderer/referanceMap/blob/e1f2c200e1e82a761064a31fb0aebf800a54e6ea/index.js#L44-L46 "Source code on GitHub")
6262
6363 clears the referance map of a objects
6464
6565 ## size
6666
67-[index.js:52-54](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/index.js#L52-L54 "Source code on GitHub")
67 +[index.js:52-54](https://github.com/wanderer/referanceMap/blob/e1f2c200e1e82a761064a31fb0aebf800a54e6ea/index.js#L52-L54 "Source code on GitHub")
6868
6969 returns the number of items in the refernace map
7070
7171 Returns **integer**
7272
73 +## has
74 +
75 +[index.js:60-63](https://github.com/wanderer/referanceMap/blob/e1f2c200e1e82a761064a31fb0aebf800a54e6ea/index.js#L60-L63 "Source code on GitHub")
76 +
77 +tests wether a given referance is valid or not
78 +
79 +**Parameters**
80 +
81 +- `ref`
82 +
83 +Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
84 +
7385 # LICENSE
7486 [MPL-2.0](https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2))

Built with git-ssb-web