Describe the return values of comparisons
This commit is contained in:
		
							parent
							
								
									e50eb84926
								
							
						
					
					
						commit
						81f3dfe338
					
				
					 1 changed files with 12 additions and 3 deletions
				
			
		|  | @ -381,6 +381,7 @@ class session { | |||
| 
 | ||||
| 	@param {string} PATH the name | ||||
| 	@param {object} DATA the data to compare to | ||||
| 	@return {boolean} the result: true is when the data is the same, false otherwise | ||||
| 	*/ | ||||
| 	static async compare(PATH, DATA) { | ||||
| 		/* The actual comparison of data. */ | ||||
|  | @ -404,13 +405,21 @@ class session { | |||
| 	} | ||||
| } | ||||
| 
 | ||||
| /* Compare a data against the stored data. Useful when comparing dictionaries. | ||||
| /* | ||||
| Compare a data against the stored data. Useful when comparing dictionaries. | ||||
| 
 | ||||
| @param {string} PATH the name | ||||
| @param {object} DATA the data to compare to | ||||
| @return {boolean} the result: true is when the data is the same, false otherwise | ||||
| */ | ||||
| export async function compare(PATH, DATA) { | ||||
| 	/* The actual comparison of data. */ | ||||
| 	/* | ||||
| 	Compare the data. | ||||
| 
 | ||||
| 	@param {object} DATA_ONE the first data | ||||
| 	@param {object} DATA_TWO the second data | ||||
| 	@return {boolean} the result | ||||
| 	*/ | ||||
| 	async function comparison(DATA_ONE, DATA_TWO) { | ||||
| 		let RESULT = true; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue