Skip to content

Comments

initialize rt with undefined instead of null#5

Open
kywch wants to merge 1 commit intofredvbrug:masterfrom
kywch:patch-1
Open

initialize rt with undefined instead of null#5
kywch wants to merge 1 commit intofredvbrug:masterfrom
kywch:patch-1

Conversation

@kywch
Copy link

@kywch kywch commented Oct 1, 2021

null is evaluated as 0, so when there was no response the trial returns a (negative) number as an rt.

Changing it to undefined would return a nan to a non-response trial, making it easier to identify.

null is evaluated as 0, so when there was no response the trial returns a (negative) number as an rt. 

Changing it to undefined would return a nan to a non-response trial, making it easier to identify.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant