//1. typeof
typeof padding === "number";
typeof padding === "string";
typeof obj === "object";
//2. instanceof
if(padder instanceof SpaceRepeatingPadder){
//do some things
}
//3. constructor.name
if(this.constructor.name=="Player"){
//do some things
}