How to check the JS Class is inherit mongoose.Model? (js or ts doesnt matter)

后端 未结 0 921
刺人心
刺人心 2020-12-12 14:27

i want to create a condition to check Cat is inherit mongoose Model.

  var CatModel = mongoose.model(\'Cat\',catSchema)
    if(CatModel instanceof mongoose.Mo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题