js删除对象中的空值

LiZiheng / 2023-07-17 / 原文

  var datafile=Object.fromEntries(
		Object.entries(obj).filter(([key,value])=>value!="")	  
	  );