-
Notifications
You must be signed in to change notification settings - Fork 1
isDOMFragment
Toke Voltelen edited this page Dec 5, 2016
·
1 revision
Is the given object a Document Fragment
-
obj
(Object) - The object to check - returns (Boolean) - Is it a Document Fragment or not.
import isDOMFragment from 'vanillajs-browser-helpers/isDOMFragment';
isDOMFragment(document.body); // -> False
isDOMFragment(document.createDocumentFragment()); // -> True