Swift String To Bool Js