cgta.oscala.sjs.extensions.JsAnyExtensions.scala Maven / Gradle / Ivy
The newest version!
package cgta.oscala
package sjs.extensions
import scala.scalajs.js
//////////////////////////////////////////////////////////////
// Copyright (c) 2014 Ben Jackman, Jeff Gomberg
// All Rights Reserved
// please contact [email protected] or [email protected]
// for licensing inquiries
// Created by bjackman @ 6/14/14 2:56 PM
//////////////////////////////////////////////////////////////
class JsAnyExtensions(val a: js.Any) extends AnyVal {
def asJsDyn = a.asInstanceOf[js.Dynamic]
def asJsDynObj = a.asInstanceOf[js.Dynamic with js.Object]
def asJsObj = a.asInstanceOf[js.Object]
def asJsDict[A] = a.asInstanceOf[js.Dictionary[A]]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy