v1
- by trevorhreed 9/25/202100
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const data = [
	'a',
	' ',
	'\r',
	'\n',
	'\t',
	'\f',
	'\v',
	'\u00a0',
	'\u1680',
	'\u2000',
	'\u200a',
	'\u2028',
	'\u2029',
	'\u202f',
	'\u205f',
	'\u3000',
	'\ufeff'
]
delete caserun single casemove downdrag and drop case


ready



const direct = data.filter(d => {
	return d !== ' '
		&& d !== '\n'
		&& d !== '\t'
		&& d !== '\r'
		&& d !== '\f'
		&& d !== '\v'
		&& d !== '\u00a0'
		&& d !== '\u1680'
		&& d !== '\u2000'
		&& d !== '\u200a'
		&& d !== '\u2028'
		&& d !== '\u2029'
		&& d !== '\u202f'
		&& d !== '\u205f'
		&& d !== '\u3000'
		&& d !== '\ufeff'
})
delete caserun single casemove upmove downdrag and drop case


ready



const indexOf = data.filter(d => {
	return ' \r\n\t\f\v\u00a0\u1680\u2000\u200a\u2028\u2029\u202f\u205f\u3000\ufeff'.indexOf(d) === -1
})
delete caserun single casemove upmove downdrag and drop case


ready



const whitespace = /^\s/
const regex = data.filter(d => {
	return !whitespace.test(d)
})
delete caserun single casemove upmove downdrag and drop case


ready



const whitespace = /\s/
const regex = data.filter(d => {
	return !whitespace.test(d)
})
delete caserun single casemove upmove downdrag and drop case


ready



const whitespace = /^\s$/
const regex = data.filter(d => {
	return !whitespace.test(d)
})
delete caserun single casemove updrag and drop case


ready



const trim = data.filter(d => {
	return d.trim() !== ''
})
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN