What does () sign mean in this nested Record using immutable.js?
This is the code:
'use strict'
const {Record} = require('immutable')
const Form = Record({
disabled: false,
fields: new (Record({
username: '',
usernameHasError: false,
email: '',
emailHasError: false,
password: '',
passwordHasError: false,
passwordAgain: '',
passwordAgainHasError: false,
showPassword: false
}))()
})
At the the of the fields
there is extra ()
sign, what does it mean? What syntax is it?