stylesheetToString

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.css

This function take a StyleSheet instance and convert it to a simple string

Params

  1. stalesheet*-StyleSheet|StyleSheetList

    The StyleSheet instance to convert

Return

  1. -String

    The css string

Example

import { stylesheetToString } from '@blackbyte/sugar/css';
stylesheetToString(document.stylesheets); // => body { ... }

Todo

  • testsnormal