Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

improve Webstorm development #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
coverage
tmp
.idea
12 changes: 7 additions & 5 deletions als.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ exports.disableLinkedTop = () => {

/**
* Set the key/value for this score
* @param {String} key The key of value
* @param {String} value The value
* @param {Boolean} linkedTop The value linked to top
* @returns {Boolean} if success, will return true, otherwise false
* @param key {string} key The key of value
* @param value {*} value The value
* param linkedTop {boolean} linkedTop The value linked to top
* @returns {boolean} if success, will return true, otherwise false
*/
exports.set = function setValue(key, value, linkedTop) {
/* istanbul ignore if */
Expand All @@ -164,9 +164,11 @@ exports.set = function setValue(key, value, linkedTop) {
return true;
};


/**
* Get the value by key
* @param {String} key The key of value
* @param key {String} key The key of value
* @returns {*} value of 'key'
*/
exports.get = function getValue(key) {
const data = map.get(getCurrentId());
Expand Down