git ssb

0+

wanderer🌟 / referenceMap



Commit baff2862fe1006abf980eeb24ba65b81d4f54012

update docs

Signed-off-by: wanderer <mjbecze@gmail.com>
wanderer committed on 8/15/2017, 3:37:11 PM
Parent: 31b26dc43440dd6bb683c2f0e63e413890f26274

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/59a99b6e465120b17057b03bebda1ea33087fb45/index.js#L5-L7 "Source code on GitHub")
17 +[index.js:5-7](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/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/59a99b6e465120b17057b03bebda1ea33087fb45/index.js#L15-L17 "Source code on GitHub")
23 +[index.js:15-17](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/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/59a99b6e465120b17057b03bebda1ea33087fb45/index.js#L24-L30 "Source code on GitHub")
36 +[index.js:24-30](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/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/59a99b6e465120b17057b03bebda1ea33087fb45/index.js#L37-L39 "Source code on GitHub")
48 +[index.js:37-39](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/index.js#L37-L39 "Source code on GitHub")
4949
5050 deletes an object given a referance as an int
5151
5252 **Parameters**
@@ -57,10 +57,18 @@
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/59a99b6e465120b17057b03bebda1ea33087fb45/index.js#L44-L46 "Source code on GitHub")
61 +[index.js:44-46](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/index.js#L44-L46 "Source code on GitHub")
6262
6363 clears the referance map of a objects
6464
65 +## size
66 +
67 +[index.js:52-54](https://github.com/wanderer/referanceMap/blob/31b26dc43440dd6bb683c2f0e63e413890f26274/index.js#L52-L54 "Source code on GitHub")
68 +
69 +returns the number of items in the refernace map
70 +
71 +Returns **integer**
72 +
6573 # LICENSE
6674 [MPL-2.0](https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2))

Built with git-ssb-web