mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 16:26:16 -04:00
Added eslint space-before-blocks rule
This commit is contained in:
parent
44b90be7d6
commit
094d352e5f
17 changed files with 23 additions and 22 deletions
|
@ -109,7 +109,7 @@ export function mean(data) {
|
|||
*/
|
||||
export function median(data) {
|
||||
if ((data.length % 2) === 0 && data.length > 0) {
|
||||
data.sort(function(a, b){
|
||||
data.sort(function(a, b) {
|
||||
return a.minus(b);
|
||||
});
|
||||
const first = data[Math.floor(data.length / 2)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue