mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
6 changed files with 77 additions and 18 deletions
@ -1,5 +1,9 @@ |
|||||
export const keys = Object.keys; |
export const { keys } = Object; |
||||
|
|
||||
export function blank () { |
export function blank () { |
||||
return Object.create( null ); |
return Object.create( null ); |
||||
} |
} |
||||
|
|
||||
|
export function forOwn ( object, func ) { |
||||
|
Object.keys( object ).forEach( key => func( object[ key ], key ) ); |
||||
|
} |
||||
|
@ -0,0 +1,9 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'any global variables in scope can be re-exported', |
||||
|
|
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports.Buffer, Buffer ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1 @@ |
|||||
|
export { Buffer }; |
Loading…
Reference in new issue